#include <QtGui/qtextlayout.h> #ifndef QTEXTLAYOUT_H class QTextLayout{ /* Some contents are skipped to improve readability */ public: struct FormatRange{ /* ... */ public: class QTextCharFormat format; /* ... */ }; /* ... */ }; #endif // QTEXTLAYOUT_H