Skip to content

PythonQt.QtGui.QTextEdit · declarations 004

Back to PythonQt.QtGui.QTextEdit

toPlainText

toPlainText() -> str

X.toPlainText() -> str

Supplemental documentation: Qt 5 reference:

QString QTextEdit::toPlainText() const

QString QTextEdit::toPlainText() const

Returns the text of the text edit as plain text.

Note: Getter function for property plainText.

See also QTextEdit::setPlainText().

Upstream PySide2 reference signatures (binding differences may apply):

toPlainText(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#toPlainText

undo

undo() -> None

X.undo()

Supplemental documentation: Qt 5 reference:

[slot] void QTextEdit::undo()

Undoes the last operation.

If there is no operation to undo, i.e. there is no undo step in the undo/redo history, nothing happens.

This function was introduced in Qt 4.2.

See also redo().

Upstream PySide2 reference signatures (binding differences may apply):

undo(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#undo

undoAvailable

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

Native PythonQt.QtGui.QTextEdit.undoAvailable; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTextEdit::undoAvailable(bool available)

This signal is emitted whenever undo operations become available (available is true) or unavailable (available is false).

Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#undoAvailable

undoRedoEnabled instance-attribute

undoRedoEnabled: Any

Qt 5 reference:

undoRedoEnabled : bool

This property holds whether undo and redo are enabled

Users are only able to undo or redo actions if this property is true, and if there is an action that can be undone (or redone).

Access functions:

bool isUndoRedoEnabled() const
void setUndoRedoEnabled(bool enable)

Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#undoRedoEnabled

wheelEvent

wheelEvent(e: Any) -> None

X.wheelEvent(e)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTextEdit::wheelEvent(QWheelEvent *e)

Reimplements: QAbstractScrollArea::wheelEvent(QWheelEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

wheelEvent(self, e: PySide2.QtGui.QWheelEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#wheelEvent

windowIconChanged

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

Native PythonQt.QtGui.QTextEdit.windowIconChanged; argument details are not documented.

windowIconTextChanged

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

Native PythonQt.QtGui.QTextEdit.windowIconTextChanged; argument details are not documented.

windowTitleChanged

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

Native PythonQt.QtGui.QTextEdit.windowTitleChanged; argument details are not documented.

wordWrapMode

wordWrapMode() -> Any

X.wordWrapMode()

Supplemental documentation: Qt 5 reference:

wordWrapMode : QTextOption::WrapMode

This property holds the mode QTextEdit will use when wrapping text by words

By default, this property is set to QTextOption::WrapAtWordBoundaryOrAnywhere.

Access functions:

QTextOption::WrapMode wordWrapMode() const
void setWordWrapMode(QTextOption::WrapMode policy)

See also QTextOption::WrapMode.

Upstream PySide2 reference signatures (binding differences may apply):

wordWrapMode(self) -> PySide2.QtGui.QTextOption.WrapMode

Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#wordWrapMode

zoomIn

zoomIn(range: int) -> None

X.zoomIn(range)

Supplemental documentation: Qt 5 reference:

[slot] void QTextEdit::zoomIn(int range \= 1)

Zooms in on the text by making the base font size range points larger and recalculating all font sizes to be the new size. This does not change the size of any images.

See also zoomOut().

Upstream PySide2 reference signatures (binding differences may apply):

zoomIn(self, range: int=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#zoomIn

zoomInF

zoomInF(range: float) -> None

X.zoomInF(range)

Upstream PySide2 reference signatures (binding differences may apply):

zoomInF(self, range: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#zoomInF

zoomOut

zoomOut(range: int) -> None

X.zoomOut(range)

Supplemental documentation: Qt 5 reference:

[slot] void QTextEdit::zoomOut(int range \= 1)

Zooms out on the text by making the base font size range points smaller and recalculating all font sizes to be the new size. This does not change the size of any images.

See also zoomIn().

Upstream PySide2 reference signatures (binding differences may apply):

zoomOut(self, range: int=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#zoomOut