QQuickTextDocument#

The QQuickTextDocument class provides access to the QTextDocument of QQuickTextEdit. More

Inheritance diagram of PySide6.QtQuick.QQuickTextDocument

Synopsis#

Functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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 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.

class PySide6.QtQuick.QQuickTextDocument(parent)#
Parameters:

parentPySide6.QtQuick.QQuickItem

Constructs a QQuickTextDocument object with parent as the parent object.

PySide6.QtQuick.QQuickTextDocument.QmlIsAnonymous#
PySide6.QtQuick.QQuickTextDocument.textDocument()#
Return type:

PySide6.QtGui.QTextDocument

Returns a pointer to the QTextDocument object.