#include <QtGui/qevent.h> #ifndef QEVENT_H class QKeyEvent: public QInputEvent{ /* Some contents are skipped to improve readability */ protected: class QString txt; /* ... */ }; #endif // QEVENT_H