#include <QtCore/qcoreapplication.h> #ifndef QCOREAPPLICATION_H class QCoreApplication: public QObject{ /* Some contents are skipped to improve readability */ private: static class QCoreApplication* self; /* ... */ }; #endif // QCOREAPPLICATION_H