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