QQuickTextDocumentclass provides access to theQTextDocumentof QQuickTextEdit. 更多 …
def
textDocument
()
This class provides access to the
QTextDocumentof QQuickTextEdit elements. This is provided to allow usage of the 富文本处理 functionalities of Qt. You are not allowed to modify the document, but it can be used to output content, for example withQTextDocumentWriter), or provide additional formatting, for example withQSyntaxHighlighter.The class has to be used from C++ directly, using the property of the TextEdit .
Warning: The
QTextDocumentprovided 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 theQTextDocument. If you do, the element in question may stop functioning or crash.
QQuickTextDocument
(
parent
)
¶
- param parent
构造
QQuickTextDocument
object with
parent
作为父级对象。
PySide2.QtQuick.QQuickTextDocument.
textDocument
(
)
¶
QTextDocument
返回指针指向
QTextDocument
对象。