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