#include <QtGui/qevent.h> #ifndef QEVENT_H class QHoverEvent: public QEvent{ /* Some contents are skipped to improve readability */ protected: class QPoint p; /* ... */ }; #endif // QEVENT_H