#include <QtGui/qtextformat.h> #ifndef QTEXTFORMAT_H class QTextImageFormat: public QTextCharFormat{ /* Some contents are skipped to improve readability */ public: inline qreal width() const /* ... */ }; #endif // QTEXTFORMAT_H