[Interest] Crash with Qt application that use OpenGL

Ulf Hermann ulf.hermann at qt.io
Fri Apr 21 17:07:06 CEST 2017


> ps: i had a chat with a mozilla developer some time ago: they never use
> desktop opengl on windows, but only use ANGLE with a fallback to
> software rendering, if the application crashes on customer's machines.

You can force Qt to use Angle by setting the QT_OPENGL environment 
variable to QT_OPENGL=angle. Then detect if it crashes, by registering a 
signal handler or similar (sorry, Qt cannot do that for you). If it has 
crashed the last time set QT_OPENGL=software. There you have the same 
behavior.

See also http://doc.qt.io/qt-5/windows-requirements.html for more details.

br,
Ulf



More information about the Interest mailing list