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