Qt | Learning Qt

QCoreApplication

Header: #include
qmake: QT += core
Inherits: QObject

Public Functions

QCoreApplication(int &argc, char** argv)

Qt build core applications, and QApplication different, QCoreApplication for non-gui applications, QApplication is a GUI-based applications (including QtGui library)
related to inheritance: QObject -> QCoreApplication -> QGuiApplication -> QApplication

Warning: argc and argv throughout the life of the program effectively, qrgc must be greater than 0 and there is at least a valid string argv

~QCoreApplication()

Guess you like

Origin www.cnblogs.com/HY12345/p/11333997.html