#include <QtGui/qtextobject.h> #ifndef QTEXTOBJECT_H class QTextBlock{ /* Some contents are skipped to improve readability */ public: typedef class QTextBlock::iterator Iterator; /* ... */ }; #endif // QTEXTOBJECT_H