O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

QCoreApplication's many responsibilities

QCoreApplication (http://doc.qt.io/qt-5.9/qcoreapplication.html) is a QObject-derived class which is used in non-UI Qt applications to achieve quite a few things:

  • It handles the application's event loop, which for non-UI applications is important whenever you need timers for processing, and other kinds of interaction with the operating system, mostly disk or network I/O. The event loop is started by the exec function.
  • It stores and retrieves any application properties via accessor methods (name, version, organization, organization domain, and so on).
  • It provides support for localization by managing installed translation files and providing string translation methods.
  • It gives access to application-related ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required