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