#include <QtGui/qpaintengine.h> #ifndef QPAINTENGINE_H class QTextItem{ /* Some contents are skipped to improve readability */ public: qreal ascent() const /* ... */ }; #endif // QPAINTENGINE_H