#include <QtGui/qevent.h> #ifndef QEVENT_H class QContextMenuEvent: public QInputEvent{ /* Some contents are skipped to improve readability */ public: enum Reason{ Mouse = 0, Keyboard = 1, Other = 2, }; /* ... */ }; #endif // QEVENT_H