Change QAppliation into QGuiApplication without problems?
-
I took over a 15 year old Python Qt application. It uses an QApplication object.
Because I need some of the features of QGuiApplication class I would like to replace the QApplication with QGuiApplication.
I would like to assess the possible implications of that change. I read the docs of course. To my understanding and knowledge it shouldn't have a negative impact.
Or can you imagine any?
-
I took over a 15 year old Python Qt application. It uses an QApplication object.
Because I need some of the features of QGuiApplication class I would like to replace the QApplication with QGuiApplication.
I would like to assess the possible implications of that change. I read the docs of course. To my understanding and knowledge it shouldn't have a negative impact.
Or can you imagine any?
-
Hi,
Using QGuiApplication means dropping all QWidget based elements of your application.
-
QApplication is a subclass of QGuiApplication, so you can access to QGuiApplication metthods directly.