#include <QtGui/qpainter.h> #ifndef QPAINTER_H class QPainter{ /* Some contents are skipped to improve readability */ public: void setBackground(class QBrush const & bg); /* ... */ }; #endif // QPAINTER_H