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