- class QQuickTextDocument#
The
QQuickTextDocument
class provides access to the QTextDocument of QQuickTextEdit. More…Synopsis#
Properties#
Methods#
def
__init__()
def
isModified()
def
save()
def
saveAs()
def
setModified()
def
setSource()
def
source()
def
status()
def
textDocument()
Signals#
def
sourceChanged()
def
statusChanged()
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, including document modifications. It can also be used to output content, for example with QTextDocumentWriter), or provide additional formatting, for example with QSyntaxHighlighter.
- class QmlIsUncreatable#
- class Status#
New in version 6.7.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property modifiedᅟ: bool#
- Access functions:
- Access functions:
Signal
sourceChanged()
- property statusᅟ: QQuickTextDocument.Status#
- Access functions:
Signal
statusChanged()
- __init__(parent)#
- Parameters:
parent –
QQuickItem
Constructs a
QQuickTextDocument
object withparent
as the parent object.- isModified()#
- Return type:
bool
Getter of property
modifiedᅟ
.- modifiedChanged()#
Notification signal of property
modifiedᅟ
.- save()#
- setModified(modified)#
- Parameters:
modified – bool
See also
Setter of property
modifiedᅟ
.Setter of property
sourceᅟ
.- setTextDocument(document)#
- Parameters:
document –
QTextDocument
Sets the given
document
.The caller retains ownership of the document.
See also
- source()#
- Return type:
See also
Getter of property
sourceᅟ
.- sourceChanged()#
Notification signal of property
sourceᅟ
.Getter of property
statusᅟ
.- statusChanged()#
Notification signal of property
statusᅟ
.- textDocument()#
- Return type:
Returns a pointer to the QTextDocument object.
See also
- textDocumentChanged()#
This signal is emitted when the underlying QTextDocument is replaced with a different instance.
See also