Qt Creator用户界面中的文本损坏 [英] Broken text in Qt Creator UI
问题描述
有时(并非总是如此),Qt Creator用户界面中的某些文本项已损坏:
Sometimes (not always), certain text items in the Qt Creator UI are broken:
您知道是什么原因引起的吗?还是解决方法?
问题可能出在我的便宜显卡(Intel板载显卡)上.到目前为止,Creator可能已经支持QML,这意味着它可以在OpenGL上运行.
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.
我尝试重新启动Creator,并进行了修复,但是在欢迎"和编辑"选项卡之间切换了几次之后,再次发生.
I tried restarting Creator and that fixed it, but after switching between the Welcome and Edit tabs a few times, it happens again.
我尝试使Creator的UI使用软件QML渲染器而不是OpenGL,因为这可能使其正常工作.我是通过在cmd.exe
中运行以下命令来做到这一点的:
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
但这并不能解决问题.
推荐答案
事实证明,该解决方案与 Qt文档页面,该页面用于在启动Creator之前将环境变量QT_OPENGL
设置为angle
.
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.
这篇关于Qt Creator用户界面中的文本损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!