QGuiApplication inherits from QCoreApplication; and QApplication inherits from QGuiApplication. And our MainApplication inherits from QApplication.
But I think that QCoreApplication does not support gui like opengl but I could be wrong.
These should be static routines otherwise they could not be invoked before creation as is required here.
So unless I am all wet (and I could easily be!) then doing a QGuiApplication::setAttribute call right before MainApplication is created should be allowed.
Last edited by KevinH; 02-08-2020 at 02:37 PM.
|