+ Reply to Thread
Results 1 to 2 of 2

Thread: QApplication, QGuiApplication and QCoreApplication

Hybrid View

  1. #1
    Join Date
    Jan 2014
    Posts
    76
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QApplication, QGuiApplication and QCoreApplication

    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,

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,278
    Thanks
    3
    Thanked 4,994 Times in 4,774 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: QApplication, QGuiApplication and QCoreApplication

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following 2 users say thank you to wysota for this useful post:

    atomic (5th September 2014), Nizars (27th January 2017)

+ Reply to Thread

Similar Threads

  1. Replies: 4
    Last Post: 27th May 2014, 21:24
  2. Replies: 2
    Last Post: 1st August 2011, 06:30
  3. Replies: 4
    Last Post: 2nd October 2010, 22:41
  4. Determine if QCoreApplication or QApplication is running
    By doberkofler in forum Qt Programming
    Replies: 20
    Last Post: 17th September 2010, 18:45
  5. Replies: 0
    Last Post: 25th November 2009, 15:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts