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