#include <QtGui/qtextobject.h> #ifndef QTEXTOBJECT_H class QTextObject: public QObject{ /* Some contents are skipped to improve readability */ public: class QTextFormat format() const /* ... */ }; #endif // QTEXTOBJECT_H