#include <QtGui/qtextdocument.h> #ifndef QTEXTDOCUMENT_H class QTextDocument: public QObject{ /* Some contents are skipped to improve readability */ public: struct QVariant resource(int type, struct QUrl const & name) const /* ... */ }; #endif // QTEXTDOCUMENT_H