Broken text in Qt Creator UI

感情迁移 提交于 2019-12-11 16:25:25

问题


Sometimes (not always), certain text items in the Qt Creator UI are broken:

Any idea what causes it? Or a workaround?

Maybe the problem is my cheap video card (an Intel on-board one). This theory is supported by the fact that Creator is probably QML-powered by now, meaning it's running on OpenGL.

I tried restarting Creator and that fixed it, but after switching between the Welcome and Edit tabs a few times, it happens again.

I tried making Creator's UI use the software QML renderer, rather than OpenGL, as that might have made it work correctly. I did it by running the following in cmd.exe:

> set QMLSCENE_DEVICE=softwarecontext
> qtcreator.exe

But that didn't fix it.


回答1:


It turns out the solution is the same as that to the problem I posted next, i.e. to make the app (Qt Creator in this case) use ANGLE. Except I don't want to recompile Qt Creator just to add one line of code, so I use the alternative approach in the Qt doc page, which is to set the env var QT_OPENGL to angle, before launching Creator.

At least so far it hasn't bugged out on me.

Note: The setting of an env var can be done conveniently with a batch file as described here.



来源:https://stackoverflow.com/questions/39042204/broken-text-in-qt-creator-ui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!