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