[Interest] What is the difference.

Sze Howe Koh szehowe.koh at gmail.com
Mon Sep 22 17:07:19 CEST 2014


Hi,

On 22 September 2014 23:01, william.crocker at analog.com
<william.crocker at analog.com> wrote:
> Gang:
>
> While we are talking about the need for a Q[Core]Application...
>
> What is the difference between;
>
>      QCoreApplication(argv,argc);
>
> and
>
>      QApplication(argc,argc,false);  // Note GUIEnabled=false

QCoreApplication is for non-GUI programs. QApplication is for
QWidget-based programs.

Halfway between the two, there's also QGuiApplication (new in Qt 5)
which is for GUI programs that don't use QWidgets (e.g. Qt Quick or
OpenGL).

You can find the details in the Qt documentation, e.g.
http://qt-project.org/doc/qt-5/QApplication.html


Regards,
Sze-Howe



More information about the Interest mailing list