#include <QtCore/qcoreevent.h> #ifndef QCOREEVENT_H class QTimerEvent: public QEvent{ /* Some contents are skipped to improve readability */ public: QTimerEvent(int timerId); /* ... */ }; #endif // QCOREEVENT_H