Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt app crashes on Win 7 unless AA_UseDesktopOpenGL is set explicitly
MartinD last edited by MartinD
I have a computer with Windows 7 where my QtQuick 2 Qt 5.7.0 app crashes. I have to explicitly set app.setAttribute(AA_UseDesktopOpenGL), then my application on this particular computer works.
Is there a way to automatically handle this situation? I don't know how safe it is to hard set app.setAttribute(AA_UseDesktopOpenGL). I would rather detect whether the app will run on the PC and if not then set app.setAttribute(AA_UseDesktopOpenGL). Is there a way to accomplish this automatically without user seeing anything (mainly app crash popup)?
Did you check where it crash ?
You might be able to detect that init did not work and then switch to