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