QML: Garbled text with colorful pixels around it on Intel GPU

笑着哭i 提交于 2019-12-11 08:17:03

问题


Screenshot of one of the Qt Creator example apps:

My videocard is a Mobile Intel(R) 4 Series Express Chipset Family.

Any idea what the problem might be?


回答1:


The solution was to call either:

QGuiApplication::setAttribute(Qt::AA_UseOpenGLES);

or

QGuiApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);

before instantiating QGuiApplication. I don't know exactly why it worked :)



来源:https://stackoverflow.com/questions/39081028/qml-garbled-text-with-colorful-pixels-around-it-on-intel-gpu

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