#include <QtGui/qevent.h> #ifndef QEVENT_H class QPaintEvent: public QEvent{ /* Some contents are skipped to improve readability */ public: QPaintEvent(class QRegion const & paintRegion); /* ... */ }; #endif // QEVENT_H