Skip to content

PythonQt.QtGui.QTextObject · declarations 001

Back to PythonQt.QtGui.QTextObject

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTextObject.destroyed; argument details are not documented.

document

document() -> Any

X.document() -> PythonQt.QtGui.QTextDocument

Supplemental documentation: Qt 5 reference:

QTextDocument *QTextObject::document() const

Returns the document this object belongs to.

See also format().

Upstream PySide2 reference signatures (binding differences may apply):

document(self) -> PySide2.QtGui.QTextDocument

Source: https://doc.qt.io/archives/qt-5.15/qtextobject.html#document

format

format() -> Any

X.format() -> PythonQt.QtGui.QTextFormat

Supplemental documentation: Qt 5 reference:

QTextFormat QTextObject::format() const

Returns the text object's format.

See also setFormat() and document().

Upstream PySide2 reference signatures (binding differences may apply):

format(self) -> PySide2.QtGui.QTextFormat

Source: https://doc.qt.io/archives/qt-5.15/qtextobject.html#format

formatIndex

formatIndex() -> int

X.formatIndex() -> int

Supplemental documentation: Qt 5 reference:

int QTextObject::formatIndex() const

Returns the index of the object's format in the document's internal list of formats.

See also QTextDocument::allFormats().

Upstream PySide2 reference signatures (binding differences may apply):

formatIndex(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtextobject.html#formatIndex

objectIndex

objectIndex() -> int

X.objectIndex() -> int

Supplemental documentation: Qt 5 reference:

int QTextObject::objectIndex() const

Returns the object index of this object. This can be used together with QTextFormat::setObjectIndex().

Upstream PySide2 reference signatures (binding differences may apply):

objectIndex(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtextobject.html#objectIndex

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTextObject.objectNameChanged; argument details are not documented.

setFormat

setFormat(format: Any) -> None

X.setFormat(format)

Supplemental documentation: Qt 5 reference:

[protected] void QTextObject::setFormat(const QTextFormat \&format)

Sets the text object's format.

See also format().

Upstream PySide2 reference signatures (binding differences may apply):

setFormat(self, format: PySide2.QtGui.QTextFormat) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextobject.html#setFormat