QQuickTextDocument Class
The QQuickTextDocument class provides access to the QTextDocument of QQuickTextEdit 更多...
头文件: | #include <QQuickTextDocument> |
qmake: | QT += quick |
开始支持版本: | Qt 5.1 |
基类: | QObject |
公有函数
QQuickTextDocument(QQuickItem *parent) | |
QTextDocument * | textDocument() const |
- 32 个公有函数继承自 QObject
其他继承的成员
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QObject
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QQuickTextDocument class provides access to the QTextDocument of QQuickTextEdit
This class provides access to the QTextDocument of QQuickTextEdit elements. This is provided to allow usage of the Rich Text Processing functionalities of Qt. You are not allowed to modify the document, but it can be used to output content, for example with QTextDocumentWriter), or provide additional formatting, for example with QSyntaxHighlighter.
The class has to be used from C++ directly, using the property of the TextEdit.
Warning: The QTextDocument provided is used internally by Qt Quick elements to provide text manipulation primitives. You are not allowed to perform any modification of the internal state of the QTextDocument. If you do, the element in question may stop functioning or crash.
成员函数
QQuickTextDocument::QQuickTextDocument(QQuickItem *parent)
Constructs a QQuickTextDocument object with parent as the parent object.
QTextDocument *QQuickTextDocument::textDocument() const
Returns a pointer to the QTextDocument object.