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