#include <QtGui/qevent.h> #ifndef QEVENT_H class QWindowStateChangeEvent: public QEvent{ /* Some contents are skipped to improve readability */ public: QWindowStateChangeEvent(Qt::WindowStates aOldState); /* ... */ }; #endif // QEVENT_H