Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. differences between QApplication, QGuiAppication, QCoreApplication classes
Forum Updated to NodeBB v4.3 + New Features

differences between QApplication, QGuiAppication, QCoreApplication classes

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 15.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    divaindie
    wrote on last edited by aha_1980
    #1

    Hi all,
    I came across three classes QApplication ,QGuiAppication ,QCoreApplication .as per Qt document these are the classes which are used for event loop(what is event loop ?) .but i am not getting in which exact scenario i need to use any of these classes?.what are the differences between them ?.what are the significances of these classes?

    1 Reply Last reply
    1
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2
      • QCoreApplication - base class. Use it in command line applications.
      • QGuiApplication - base class + GUI capabilities. Use it in QML applications.
      • QApplication - base class + GUI + support for widgets. Use it in QtWidgets applications.

      Event loop - well here I recommend reading through the documentation + some Qt book. But in short: event loop is an infinite loop that works in the background of your application and handles events incoming from your operating system (mouse move, clicks, paint events, hardware events etc.), as well as internal communication (signals and slots). The event loop starts when you call app.exec();.

      (Z(:^

      1 Reply Last reply
      12
      • D Offline
        D Offline
        divaindie
        wrote on last edited by
        #3

        thanks !!!

        1 Reply Last reply
        0
        • RokeJulianLockhartR RokeJulianLockhart referenced this topic on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved