#include <QtGui/qpainter.h> #ifndef QPAINTER_H class QPainter{ /* Some contents are skipped to improve readability */ public: class QRect boundingRect(class QRect const & rect, int flags, class QString const & text); /* ... */ }; #endif // QPAINTER_H