1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#ifndef _QTMAINLOOP_H_ #define _QTMAINLOOP_H_ #include <QCoreApplication> #include "imainloop.h" class QtMainLoop: public IMainLoop { public: QtMainLoop(int argc, char **argv); ~QtMainLoop(); int exec(); private: QCoreApplication* app; }; #endif