#include <QtGui/qevent.h> #ifndef QEVENT_H class QKeyEvent: public QInputEvent{ /* Some contents are skipped to improve readability */ public: Qt::KeyboardModifiers modifiers() const /* ... */ }; #endif // QEVENT_H