内容表

上一话题

QQuickRenderControl

下一话题

QQuickTextureFactory

QQuickTextDocument

QQuickTextDocument class provides access to the QTextDocument of QQuickTextEdit. 更多

Inheritance diagram of PySide2.QtQuick.QQuickTextDocument

概要

函数

详细描述

This class provides access to the QTextDocument of 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 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 QQuickTextDocument ( parent )
param parent

QQuickItem

构造 QQuickTextDocument object with parent 作为父级对象。

PySide2.QtQuick.QQuickTextDocument. textDocument ( )
返回类型

QTextDocument

返回指针指向 QTextDocument 对象。