PythonQt.QtGui.QTextDocument · declarations 002
Back to PythonQt.QtGui.QTextDocument
defaultCursorMoveStyle
defaultCursorMoveStyle() -> Any
X.defaultCursorMoveStyle()
Supplemental documentation: Qt 5 reference:
Qt::CursorMoveStyle QTextDocument::defaultCursorMoveStyle() const
The default cursor movement style is used by all QTextCursor objects created from the document. The default is Qt::LogicalMoveStyle.
This function was introduced in Qt 4.8.
See also setDefaultCursorMoveStyle().
Upstream PySide2 reference signatures (binding differences may apply):
defaultCursorMoveStyle(self) -> PySide2.QtCore.Qt.CursorMoveStyle
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#defaultCursorMoveStyle
defaultFont
instance-attribute
defaultFont: QFont
Qt 5 reference:
defaultFont : QFont
This property holds the default font used to display the document's text
Access functions:
| QFont | defaultFont() const |
|---|---|
| void | setDefaultFont(const QFont \&font) |
QFont QTextDocument::defaultFont() const
Returns the default font to be used in the document layout.
Note: Getter function for property defaultFont.
See also setDefaultFont().
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#defaultFont
defaultStyleSheet
instance-attribute
defaultStyleSheet: str
Qt 5 reference:
defaultStyleSheet : QString
The default style sheet is applied to all newly HTML formatted text that is inserted into the document, for example using setHtml() or QTextCursor::insertHtml().
The style sheet needs to be compliant to CSS 2.1 syntax.
Note: Changing the default style sheet does not have any effect to the existing content of the document.
This property was introduced in Qt 4.2.
Access functions:
| QString | defaultStyleSheet() const |
|---|---|
| void | setDefaultStyleSheet(const QString \&sheet) |
See also Supported HTML Subset.
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#defaultStyleSheet
defaultTextOption
defaultTextOption() -> Any
X.defaultTextOption() -> PythonQt.QtGui.QTextOption
Supplemental documentation: Qt 5 reference:
defaultTextOption : QTextOption
This property holds the default text option will be set on all QTextLayouts in the document.
When QTextBlocks are created, the defaultTextOption is set on their QTextLayout. This allows setting global properties for the document such as the default word wrap mode.
Access functions:
| QTextOption | defaultTextOption() const |
|---|---|
| void | setDefaultTextOption(const QTextOption \&option) |
QTextOption QTextDocument::defaultTextOption() const
The default text option is used on all QTextLayout objects in the document. This allows setting global properties for the document such as the default word wrap mode.
Note: Getter function for property defaultTextOption.
This function was introduced in Qt 4.3.
See also setDefaultTextOption().
Upstream PySide2 reference signatures (binding differences may apply):
defaultTextOption(self) -> PySide2.QtGui.QTextOption
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#defaultTextOption
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextDocument.destroyed; argument details are not documented.
documentLayout
documentLayout() -> Any
X.documentLayout() -> PythonQt.QtGui.QAbstractTextDocumentLayout
Supplemental documentation: Qt 5 reference:
QAbstractTextDocumentLayout *QTextDocument::documentLayout() const
Returns the document layout for this document.
See also setDocumentLayout().
Upstream PySide2 reference signatures (binding differences may apply):
documentLayout(self) -> PySide2.QtGui.QAbstractTextDocumentLayout
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#documentLayout
documentLayoutChanged
documentLayoutChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextDocument.documentLayoutChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTextDocument::documentLayoutChanged()
This signal is emitted when a new document layout is set.
This function was introduced in Qt 4.4.
See also setDocumentLayout().
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#documentLayoutChanged
documentMargin
instance-attribute
documentMargin: float
Qt 5 reference:
documentMargin : qreal
The margin around the document. The default is 4.
This property was introduced in Qt 4.5.
Access functions:
| qreal | documentMargin() const |
|---|---|
| void | setDocumentMargin(qreal margin) |
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#documentMargin
drawContents
drawContents(painter: Any, rect: Any) -> None
X.drawContents(painter, rect)
Supplemental documentation: Qt 5 reference:
void QTextDocument::drawContents(QPainter *p, const QRectF \&rect \= QRectF())
Draws the content of the document with painter p, clipped to rect. If rect is a null rectangle (default) then the document is painted unclipped.
This function was introduced in Qt 4.2.
Upstream PySide2 reference signatures (binding differences may apply):
drawContents(self, painter: PySide2.QtGui.QPainter, rect: PySide2.QtCore.QRectF=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#drawContents
end
end() -> Any
X.end() -> PythonQt.QtGui.QTextBlock
Supplemental documentation: Qt 5 reference:
QTextBlock QTextDocument::end() const
This function returns a block to test for the end of the document while iterating over it.
for (QTextBlock it = doc->begin(); it != doc->end(); it = it.next())
cout << it.text().toStdString() << Qt::endl;
The block returned is invalid and represents the block after the last block in the document. You can use lastBlock() to retrieve the last valid block of the document.
See also lastBlock().
Upstream PySide2 reference signatures (binding differences may apply):
end(self) -> PySide2.QtGui.QTextBlock
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#end
find
find(expr: Any, cursor: Any, options: Any) -> Any
X.find(expr, cursor, options) -> PythonQt.QtGui.QTextCursor
Supplemental documentation: Qt 5 reference:
QTextCursor QTextDocument::find(const QString \&subString, const QTextCursor \&cursor, QTextDocument::FindFlags options \= FindFlags()) const
Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.
Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.
If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.
By default the search is case insensitive, and can match text anywhere in the document.
QTextCursor QTextDocument::find(const QString \&subString, int position \= 0, QTextDocument::FindFlags options \= FindFlags()) const
This is an overloaded function.
Finds the next occurrence of the string, subString, in the document. The search starts at the given position, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.
Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.
If the position is 0 (the default) the search begins from the beginning of the document; otherwise it begins at the specified position.
QTextCursor QTextDocument::find(const QRegExp \&expr, int from \= 0, QTextDocument::FindFlags options \= FindFlags()) const
This is an overloaded function.
Finds the next occurrence that matches the given regular expression, expr, within the same paragraph in the document.
The search starts at the given from position, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed. The FindCaseSensitively option is ignored for this overload, use QRegExp::caseSensitivity instead.
Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.
If the from position is 0 (the default) the search begins from the beginning of the document; otherwise it begins at the specified position.
QTextCursor QTextDocument::find(const QRegExp \&expr, const QTextCursor \&cursor, QTextDocument::FindFlags options \= FindFlags()) const
This is an overloaded function.
Finds the next occurrence that matches the given regular expression, expr, within the same paragraph in the document.
The search starts at the position of the given from cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed. The FindCaseSensitively option is ignored for this overload, use QRegExp::caseSensitivity instead.
Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.
If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.
By default the search is case insensitive, and can match text anywhere in the document.
QTextCursor QTextDocument::find(const QRegularExpression \&expr, int from \= 0, QTextDocument::FindFlags options \= FindFlags()) const
Finds the next occurrence that matches the given regular expression, expr, within the same paragraph in the document.
The search starts at the given from position, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.
Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.
If the from position is 0 (the default) the search begins from the beginning of the document; otherwise it begins at the specified position.
Warning: For historical reasons, the case sensitivity option set on expr is ignored. Instead, the options are used to determine if the search is case sensitive or not.
This function was introduced in Qt 5.5.
QTextCursor QTextDocument::find(const QRegularExpression \&expr, const QTextCursor \&cursor, QTextDocument::FindFlags options \= FindFlags()) const
Finds the next occurrence that matches the given regular expression, expr, within the same paragraph in the document.
The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.
Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.
If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.
By default the search is case insensitive, and can match text anywhere in the document.
This function was introduced in Qt 5.5.
Upstream PySide2 reference signatures (binding differences may apply):
find(self, expr: PySide2.QtCore.QRegExp, cursor: PySide2.QtGui.QTextCursor, options: PySide2.QtGui.QTextDocument.FindFlags=...) -> PySide2.QtGui.QTextCursor
find(self, expr: PySide2.QtCore.QRegExp, from_: int=..., options: PySide2.QtGui.QTextDocument.FindFlags=...) -> PySide2.QtGui.QTextCursor
find(self, expr: PySide2.QtCore.QRegularExpression, cursor: PySide2.QtGui.QTextCursor, options: PySide2.QtGui.QTextDocument.FindFlags=...) -> PySide2.QtGui.QTextCursor
find(self, expr: PySide2.QtCore.QRegularExpression, from_: int=..., options: PySide2.QtGui.QTextDocument.FindFlags=...) -> PySide2.QtGui.QTextCursor
find(self, subString: str, cursor: PySide2.QtGui.QTextCursor, options: PySide2.QtGui.QTextDocument.FindFlags=...) -> PySide2.QtGui.QTextCursor
find(self, subString: str, from_: int=..., options: PySide2.QtGui.QTextDocument.FindFlags=...) -> PySide2.QtGui.QTextCursor
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#find
findBlock
findBlock(pos: int) -> Any
X.findBlock(pos) -> PythonQt.QtGui.QTextBlock
Supplemental documentation: Qt 5 reference:
QTextBlock QTextDocument::findBlock(int pos) const
Returns the text block that contains the pos-th character.
Upstream PySide2 reference signatures (binding differences may apply):
findBlock(self, pos: int) -> PySide2.QtGui.QTextBlock
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#findBlock
findBlockByLineNumber
findBlockByLineNumber(blockNumber: int) -> Any
X.findBlockByLineNumber(blockNumber) -> PythonQt.QtGui.QTextBlock
Supplemental documentation: Qt 5 reference:
QTextBlock QTextDocument::findBlockByLineNumber(int lineNumber) const
Returns the text block that contains the specified lineNumber.
This function was introduced in Qt 4.5.
See also QTextBlock::firstLineNumber().
Upstream PySide2 reference signatures (binding differences may apply):
findBlockByLineNumber(self, blockNumber: int) -> PySide2.QtGui.QTextBlock
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#findBlockByLineNumber
findBlockByNumber
findBlockByNumber(blockNumber: int) -> Any
X.findBlockByNumber(blockNumber) -> PythonQt.QtGui.QTextBlock
Supplemental documentation: Qt 5 reference:
QTextBlock QTextDocument::findBlockByNumber(int blockNumber) const
Returns the text block with the specified blockNumber.
This function was introduced in Qt 4.4.
See also QTextBlock::blockNumber().
Upstream PySide2 reference signatures (binding differences may apply):
findBlockByNumber(self, blockNumber: int) -> PySide2.QtGui.QTextBlock
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#findBlockByNumber
firstBlock
firstBlock() -> Any
X.firstBlock() -> PythonQt.QtGui.QTextBlock
Supplemental documentation: Qt 5 reference:
QTextBlock QTextDocument::firstBlock() const
Returns the document's first text block.
This function was introduced in Qt 4.4.
Upstream PySide2 reference signatures (binding differences may apply):
firstBlock(self) -> PySide2.QtGui.QTextBlock
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#firstBlock
frameAt
frameAt(pos: int) -> Any
X.frameAt(pos) -> PythonQt.QtGui.QTextFrame
Upstream PySide2 reference signatures (binding differences may apply):
frameAt(self, pos: int) -> PySide2.QtGui.QTextFrame
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#frameAt
idealWidth
idealWidth() -> float
X.idealWidth() -> float
Supplemental documentation: Qt 5 reference:
qreal QTextDocument::idealWidth() const
Returns the ideal width of the text document. The ideal width is the actually used width of the document without optional alignments taken into account. It is always \<\= size().width().
This function was introduced in Qt 4.2.
See also adjustSize() and textWidth.
Upstream PySide2 reference signatures (binding differences may apply):
idealWidth(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#idealWidth
indentWidth
instance-attribute
indentWidth: float
Qt 5 reference:
indentWidth : qreal
Returns the width used for text list and text block indenting.
The indent properties of QTextListFormat and QTextBlockFormat specify multiples of this value. The default indent width is 40.
This property was introduced in Qt 4.4.
Access functions:
| qreal | indentWidth() const |
|---|---|
| void | setIndentWidth(qreal width) |
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#indentWidth
isEmpty
isEmpty() -> bool
X.isEmpty() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextDocument::isEmpty() const
Returns true if the document is empty; otherwise returns false.
Upstream PySide2 reference signatures (binding differences may apply):
isEmpty(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#isEmpty
isModified
isModified() -> bool
X.isModified() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isModified(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#isModified
isRedoAvailable
isRedoAvailable() -> bool
X.isRedoAvailable() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextDocument::isRedoAvailable() const
Returns true if redo is available; otherwise returns false.
See also isUndoAvailable() and availableRedoSteps().
Upstream PySide2 reference signatures (binding differences may apply):
isRedoAvailable(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#isRedoAvailable
isUndoAvailable
isUndoAvailable() -> bool
X.isUndoAvailable() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextDocument::isUndoAvailable() const
Returns true if undo is available; otherwise returns false.
See also isRedoAvailable() and availableUndoSteps().
Upstream PySide2 reference signatures (binding differences may apply):
isUndoAvailable(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#isUndoAvailable
isUndoRedoEnabled
isUndoRedoEnabled() -> bool
X.isUndoRedoEnabled() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isUndoRedoEnabled(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#isUndoRedoEnabled
lastBlock
lastBlock() -> Any
X.lastBlock() -> PythonQt.QtGui.QTextBlock
Supplemental documentation: Qt 5 reference:
QTextBlock QTextDocument::lastBlock() const
Returns the document's last (valid) text block.
This function was introduced in Qt 4.4.
Upstream PySide2 reference signatures (binding differences may apply):
lastBlock(self) -> PySide2.QtGui.QTextBlock
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#lastBlock
lineCount
lineCount() -> int
X.lineCount() -> int
Supplemental documentation: Qt 5 reference:
int QTextDocument::lineCount() const
Returns the number of lines of this document (if the layout supports this). Otherwise, this is identical to the number of blocks.
This function was introduced in Qt 4.5.
See also blockCount() and characterCount().
Upstream PySide2 reference signatures (binding differences may apply):
lineCount(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#lineCount
loadResource
loadResource(type: int, name: Any) -> Any
X.loadResource(type, name) -> object
Supplemental documentation: Qt 5 reference:
[virtual protected] QVariant QTextDocument::loadResource(int type, const QUrl \&name)
Loads data of the specified type from the resource with the given name.
This function is called by the rich text engine to request data that isn't directly stored by QTextDocument, but still associated with it. For example, images are referenced indirectly by the name attribute of a QTextImageFormat object.
When called by Qt, type is one of the values of QTextDocument::ResourceType.
If the QTextDocument is a child object of a QObject that has an invokable loadResource method such as QTextEdit, QTextBrowser or a QTextDocument itself then the default implementation tries to retrieve the data from the parent.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Upstream PySide2 reference signatures (binding differences may apply):
loadResource(self, type: int, name: PySide2.QtCore.QUrl) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#loadResource
markContentsDirty
markContentsDirty(*args: Any, **kwargs: Any) -> None
X.markContentsDirty(from, length)
Supplemental documentation: Qt 5 reference:
void QTextDocument::markContentsDirty(int position, int length)
Marks the contents specified by the given position and length as "dirty", informing the document that it needs to be laid out again.
Upstream PySide2 reference signatures (binding differences may apply):
markContentsDirty(self, from_: int, length: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#markContentsDirty
maximumBlockCount
instance-attribute
maximumBlockCount: int
Qt 5 reference:
maximumBlockCount : int
Specifies the limit for blocks in the document.
Specifies the maximum number of blocks the document may have. If there are more blocks in the document that specified with this property blocks are removed from the beginning of the document.
A negative or zero value specifies that the document may contain an unlimited amount of blocks.
The default value is 0.
Note that setting this property will apply the limit immediately to the document contents.
Setting this property also disables the undo redo history.
This property is undefined in documents with tables or frames.
This property was introduced in Qt 4.2.
Access functions:
| int | maximumBlockCount() const |
|---|---|
| void | setMaximumBlockCount(int maximum) |
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#maximumBlockCount
metaInformation
metaInformation(info: Any) -> str
X.metaInformation(info) -> str
Supplemental documentation: Qt 5 reference:
QString QTextDocument::metaInformation(QTextDocument::MetaInformation info) const
Returns meta information about the document of the type specified by info.
See also setMetaInformation().
Upstream PySide2 reference signatures (binding differences may apply):
metaInformation(self, info: PySide2.QtGui.QTextDocument.MetaInformation) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#metaInformation
modificationChanged
modificationChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextDocument.modificationChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTextDocument::modificationChanged(bool changed)
This signal is emitted whenever the content of the document changes in a way that affects the modification state. If changed is true, the document has been modified; otherwise it is false.
For example, calling setModified(false) on a document and then inserting text causes the signal to get emitted. If you undo that operation, causing the document to return to its original unmodified state, the signal will get emitted again.
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#modificationChanged
modified
instance-attribute
modified: Any
Qt 5 reference:
modified : bool
This property holds whether the document has been modified by the user
By default, this property is false.
Access functions:
| bool | isModified() const |
|---|---|
| void | setModified(bool m \= true) |
See also modificationChanged().
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#modified
object
object(objectIndex: int) -> Any
X.object(objectIndex) -> PythonQt.QtGui.QTextObject
Supplemental documentation: Qt 5 reference:
QTextObject *QTextDocument::object(int objectIndex) const
Returns the text object associated with the given objectIndex.
Upstream PySide2 reference signatures (binding differences may apply):
object(self, objectIndex: int) -> PySide2.QtGui.QTextObject
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#object
objectForFormat
objectForFormat(arg__1: Any) -> Any
X.objectForFormat(arg__1) -> PythonQt.QtGui.QTextObject
Supplemental documentation: Qt 5 reference:
QTextObject *QTextDocument::objectForFormat(const QTextFormat \&f) const
Returns the text object associated with the format f.
Upstream PySide2 reference signatures (binding differences may apply):
objectForFormat(self, arg__1: PySide2.QtGui.QTextFormat) -> PySide2.QtGui.QTextObject
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#objectForFormat
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextDocument.objectNameChanged; argument details are not documented.
pageCount
pageCount() -> int
X.pageCount() -> int
Supplemental documentation: Qt 5 reference:
int QTextDocument::pageCount() const
returns the number of pages in this document.
Upstream PySide2 reference signatures (binding differences may apply):
pageCount(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#pageCount
pageSize
instance-attribute
pageSize: QSizeF
Qt 5 reference:
pageSize : QSizeF
This property holds the page size that should be used for laying out the document
The units are determined by the underlying paint device. The size is measured in logical pixels when painting to the screen, and in points (1/72 inch) when painting to a printer.
By default, for a newly-created, empty document, this property contains an undefined size.
Access functions:
| QSizeF | pageSize() const |
|---|---|
| void | setPageSize(const QSizeF \&size) |
See also modificationChanged().
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#pageSize
print(printer: Any) -> Any
X.print(printer)
Supplemental documentation: Qt 5 reference:
void QTextDocument::print(QPagedPaintDevice *printer) const
Prints the document to the given printer. The QPagedPaintDevice must be set up before being used with this function.
This is only a convenience method to print the whole document to the printer.
If the document is already paginated through a specified height in the pageSize() property it is printed as-is.
If the document is not paginated, like for example a document used in a QTextEdit, then a temporary copy of the document is created and the copy is broken into multiple pages according to the size of the paint device's paperRect(). By default a 2 cm margin is set around the document contents. In addition the current page number is printed at the bottom of each page.
See also QTextEdit::print().
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#print
redo
redo(cursor: Any) -> None
X.redo(cursor)
Supplemental documentation: Qt 5 reference:
[slot] void QTextDocument::redo()
This is an overloaded function.
Redoes the last editing operation on the document if redo is available.
void QTextDocument::redo(QTextCursor *cursor)
Redoes the last editing operation on the document if redo is available.
The provided cursor is positioned at the end of the location where the edition operation was redone.
This function was introduced in Qt 4.2.
Upstream PySide2 reference signatures (binding differences may apply):
redo(self) -> None
redo(self, cursor: PySide2.QtGui.QTextCursor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#redo
redoAvailable
redoAvailable(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextDocument.redoAvailable; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTextDocument::redoAvailable(bool available)
This signal is emitted whenever redo operations become available (available is true) or unavailable (available is false).
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#redoAvailable
resource
resource(type: int, name: Any) -> Any
X.resource(type, name) -> object
Supplemental documentation: Qt 5 reference:
QVariant QTextDocument::resource(int type, const QUrl \&name) const
Returns data of the specified type from the resource with the given name.
This function is called by the rich text engine to request data that isn't directly stored by QTextDocument, but still associated with it. For example, images are referenced indirectly by the name attribute of a QTextImageFormat object.
Resources are cached internally in the document. If a resource can not be found in the cache, loadResource is called to try to load the resource. loadResource should then use addResource to add the resource to the cache.
See also QTextDocument::ResourceType.
Upstream PySide2 reference signatures (binding differences may apply):
resource(self, type: int, name: PySide2.QtCore.QUrl) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qtextdocument.html#resource