Results 1 to 2 of 2

Thread: QApplication, QGuiApplication and QCoreApplication

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    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 4 users say thank you to wysota for this useful post:

    atomic (5th September 2014), azalea (16th March 2018), Nizars (27th January 2017), TheIndependentAquarius (16th July 2020)

Similar Threads

  1. Replies: 4
    Last Post: 27th May 2014, 22:24
  2. Replies: 2
    Last Post: 1st August 2011, 07:30
  3. Replies: 4
    Last Post: 2nd October 2010, 23:41
  4. Determine if QCoreApplication or QApplication is running
    By doberkofler in forum Qt Programming
    Replies: 20
    Last Post: 17th September 2010, 19:45
  5. Replies: 0
    Last Post: 25th November 2009, 16: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.