#include <QtGui/qstylepainter.h> #ifndef QSTYLEPAINTER_H class QStylePainter: public QPainter{ /* Some contents are skipped to improve readability */ public: inline class QStyle* style() const /* ... */ }; #endif // QSTYLEPAINTER_H