QQuickTextDocument¶
The
QQuickTextDocument
class provides access to theQTextDocument
of QQuickTextEdit. More…
Synopsis¶
Functions¶
def
textDocument
()
Detailed Description¶
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 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
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 theQTextDocument
. If you do, the element in question may stop functioning or crash.
- class PySide2.QtQuick.QQuickTextDocument(parent)¶
- param parent:
Constructs a
QQuickTextDocument
object withparent
as the parent object.
- PySide2.QtQuick.QQuickTextDocument.textDocument()¶
- Return type:
Returns a pointer to the
QTextDocument
object.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.