PDA

View Full Version : QApplication, QGuiApplication and QCoreApplication



atomic
5th September 2014, 10:08
I have a simple question.
In Qt we have tree main classes like QApplication, QGuiApplication and QCoreApplication

-QApplication is allocated to standard QWidget applications
- QCoreApplication is allocated to console application

and QGuiApplication is allocated to console application when in console application we need use some classes from
gui module like QDesktopServices? I have right?

Regards,

wysota
5th September 2014, 11:02
QCoreApplication is the base class, QGuiApplication extends the base class with functionality related to handling windows and GUI stuff (non-widget related, e.g. OpenGL or QtQuick), QApplication extends QGuiApplication with functionality related to handling widgets.