PythonQt.QtGui.QTextEdit · declarations 003
Back to PythonQt.QtGui.QTextEdit
setAlignment
setAlignment(a: Any) -> None
X.setAlignment(a)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setAlignment(Qt::Alignment a)
Sets the alignment of the current paragraph to a. Valid alignments are Qt::AlignLeft, Qt::AlignRight, Qt::AlignJustify and Qt::AlignCenter (which centers horizontally).
See also alignment().
Upstream PySide2 reference signatures (binding differences may apply):
setAlignment(self, a: PySide2.QtCore.Qt.Alignment) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setAlignment
setAutoFormatting
setAutoFormatting(features: Any) -> None
X.setAutoFormatting(features)
Upstream PySide2 reference signatures (binding differences may apply):
setAutoFormatting(self, features: PySide2.QtWidgets.QTextEdit.AutoFormatting) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setAutoFormatting
setCurrentCharFormat
setCurrentCharFormat(format: Any) -> None
X.setCurrentCharFormat(format)
Supplemental documentation: Qt 5 reference:
void QTextEdit::setCurrentCharFormat(const QTextCharFormat \&format)
Sets the char format that is be used when inserting new text to format by calling QTextCursor::setCharFormat() on the editor's cursor. If the editor has a selection then the char format is directly applied to the selection.
See also currentCharFormat().
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentCharFormat(self, format: PySide2.QtGui.QTextCharFormat) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setCurrentCharFormat
setCurrentFont
setCurrentFont(f: Any) -> None
X.setCurrentFont(f)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setCurrentFont(const QFont \&f)
Sets the font of the current format to f.
See also currentFont(), setFontPointSize(), and setFontFamily().
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentFont(self, f: PySide2.QtGui.QFont) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setCurrentFont
setCursorWidth
setCursorWidth(width: int) -> None
X.setCursorWidth(width)
Upstream PySide2 reference signatures (binding differences may apply):
setCursorWidth(self, width: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setCursorWidth
setDocument
setDocument(document: Any) -> None
X.setDocument(document)
Upstream PySide2 reference signatures (binding differences may apply):
setDocument(self, document: PySide2.QtGui.QTextDocument) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setDocument
setDocumentTitle
setDocumentTitle(title: str) -> None
X.setDocumentTitle(title)
Upstream PySide2 reference signatures (binding differences may apply):
setDocumentTitle(self, title: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setDocumentTitle
setExtraSelections
setExtraSelections(selections: Any) -> None
X.setExtraSelections(selections)
Supplemental documentation: Qt 5 reference:
void QTextEdit::setExtraSelections(const QList\<QTextEdit::ExtraSelection> \&selections)
This function allows temporarily marking certain regions in the document with a given color, specified as selections. This can be useful for example in a programming editor to mark a whole line of text with a given background color to indicate the existence of a breakpoint.
This function was introduced in Qt 4.2.
See also QTextEdit::ExtraSelection and extraSelections().
Upstream PySide2 reference signatures (binding differences may apply):
setExtraSelections(self, selections: typing.Sequence[PySide2.QtWidgets.QTextEdit.ExtraSelection]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setExtraSelections
setFontFamily
setFontFamily(fontFamily: str) -> None
X.setFontFamily(fontFamily)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setFontFamily(const QString \&fontFamily)
Sets the font family of the current format to fontFamily.
See also fontFamily() and setCurrentFont().
Upstream PySide2 reference signatures (binding differences may apply):
setFontFamily(self, fontFamily: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setFontFamily
setFontItalic
setFontItalic(b: bool) -> None
X.setFontItalic(b)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setFontItalic(bool italic)
If italic is true, sets the current format to italic; otherwise sets the current format to non-italic.
See also fontItalic().
Upstream PySide2 reference signatures (binding differences may apply):
setFontItalic(self, b: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setFontItalic
setFontPointSize
setFontPointSize(s: float) -> None
X.setFontPointSize(s)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setFontPointSize(qreal s)
Sets the point size of the current format to s.
Note that if s is zero or negative, the behavior of this function is not defined.
See also fontPointSize(), setCurrentFont(), and setFontFamily().
Upstream PySide2 reference signatures (binding differences may apply):
setFontPointSize(self, s: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setFontPointSize
setFontUnderline
setFontUnderline(b: bool) -> None
X.setFontUnderline(b)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setFontUnderline(bool underline)
If underline is true, sets the current format to underline; otherwise sets the current format to non-underline.
See also fontUnderline().
Upstream PySide2 reference signatures (binding differences may apply):
setFontUnderline(self, b: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setFontUnderline
setFontWeight
setFontWeight(w: int) -> None
X.setFontWeight(w)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setFontWeight(int weight)
Sets the font weight of the current format to the given weight, where the value used is in the range defined by the QFont::Weight enum.
See also fontWeight(), setCurrentFont(), and setFontFamily().
Upstream PySide2 reference signatures (binding differences may apply):
setFontWeight(self, w: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setFontWeight
setHtml
setHtml(text: str) -> None
X.setHtml(text)
Upstream PySide2 reference signatures (binding differences may apply):
setHtml(self, text: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setHtml
setLineWrapColumnOrWidth
setLineWrapColumnOrWidth(w: int) -> None
X.setLineWrapColumnOrWidth(w)
Upstream PySide2 reference signatures (binding differences may apply):
setLineWrapColumnOrWidth(self, w: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setLineWrapColumnOrWidth
setLineWrapMode
setLineWrapMode(mode: Any) -> None
X.setLineWrapMode(mode)
Upstream PySide2 reference signatures (binding differences may apply):
setLineWrapMode(self, mode: PySide2.QtWidgets.QTextEdit.LineWrapMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setLineWrapMode
setMarkdown
setMarkdown(markdown: str) -> None
X.setMarkdown(markdown)
Upstream PySide2 reference signatures (binding differences may apply):
setMarkdown(self, markdown: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setMarkdown
setOverwriteMode
setOverwriteMode(overwrite: bool) -> None
X.setOverwriteMode(overwrite)
Upstream PySide2 reference signatures (binding differences may apply):
setOverwriteMode(self, overwrite: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setOverwriteMode
setPlaceholderText
setPlaceholderText(placeholderText: str) -> None
X.setPlaceholderText(placeholderText)
Upstream PySide2 reference signatures (binding differences may apply):
setPlaceholderText(self, placeholderText: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setPlaceholderText
setPlainText
setPlainText(text: str) -> None
X.setPlainText(text)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setPlainText(const QString \&text)
Changes the text of the text edit to the string text. Any previous text is removed.
Notes:
- text is interpreted as plain text.
- The undo/redo history is also cleared.
- currentCharFormat() is reset, unless textCursor() is already at the beginning of the document.
Note: Setter function for property plainText.
See also toPlainText().
Upstream PySide2 reference signatures (binding differences may apply):
setPlainText(self, text: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setPlainText
setReadOnly
setReadOnly(ro: bool) -> None
X.setReadOnly(ro)
Upstream PySide2 reference signatures (binding differences may apply):
setReadOnly(self, ro: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setReadOnly
setTabChangesFocus
setTabChangesFocus(b: bool) -> None
X.setTabChangesFocus(b)
Upstream PySide2 reference signatures (binding differences may apply):
setTabChangesFocus(self, b: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setTabChangesFocus
setTabStopWidth
setTabStopWidth(width: int) -> None
X.setTabStopWidth(width)
Upstream PySide2 reference signatures (binding differences may apply):
setTabStopWidth(self, width: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setTabStopWidth
setText
setText(text: str) -> None
X.setText(text)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setText(const QString \&text)
Sets the text edit's text. The text can be plain text or HTML and the text edit will try to guess the right format.
Use setHtml() or setPlainText() directly to avoid text edit's guessing.
This function was introduced in Qt 4.2.
See also toPlainText() and toHtml().
Upstream PySide2 reference signatures (binding differences may apply):
setText(self, text: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setText
setTextBackgroundColor
setTextBackgroundColor(c: Any) -> None
X.setTextBackgroundColor(c)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setTextBackgroundColor(const QColor \&c)
Sets the text background color of the current format to c.
This function was introduced in Qt 4.4.
See also textBackgroundColor().
Upstream PySide2 reference signatures (binding differences may apply):
setTextBackgroundColor(self, c: PySide2.QtGui.QColor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setTextBackgroundColor
setTextColor
setTextColor(c: Any) -> None
X.setTextColor(c)
Supplemental documentation: Qt 5 reference:
[slot] void QTextEdit::setTextColor(const QColor \&c)
Sets the text color of the current format to c.
See also textColor().
Upstream PySide2 reference signatures (binding differences may apply):
setTextColor(self, c: PySide2.QtGui.QColor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setTextColor
setTextCursor
setTextCursor(cursor: Any) -> None
X.setTextCursor(cursor)
Supplemental documentation: Qt 5 reference:
void QTextEdit::setTextCursor(const QTextCursor \&cursor)
Sets the visible cursor.
See also textCursor().
Upstream PySide2 reference signatures (binding differences may apply):
setTextCursor(self, cursor: PySide2.QtGui.QTextCursor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setTextCursor
setTextInteractionFlags
setTextInteractionFlags(arg0: flags) -> None
X.setTextInteractionFlags(flags)
Upstream PySide2 reference signatures (binding differences may apply):
setTextInteractionFlags(self, flags: PySide2.QtCore.Qt.TextInteractionFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setTextInteractionFlags
setUndoRedoEnabled
setUndoRedoEnabled(enable: bool) -> None
X.setUndoRedoEnabled(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setUndoRedoEnabled(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setUndoRedoEnabled
setWordWrapMode
setWordWrapMode(policy: Any) -> None
X.setWordWrapMode(policy)
Upstream PySide2 reference signatures (binding differences may apply):
setWordWrapMode(self, policy: PySide2.QtGui.QTextOption.WrapMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#setWordWrapMode
showEvent
showEvent(arg__1: Any) -> None
X.showEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QTextEdit::showEvent(QShowEvent *)
Reimplements: QWidget::showEvent(QShowEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
showEvent(self, arg__1: PySide2.QtGui.QShowEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#showEvent
tabChangesFocus
instance-attribute
tabChangesFocus: bool
Qt 5 reference:
tabChangesFocus : bool
This property holds whether Tab changes focus or is accepted as input
In some occasions text edits should not allow the user to input tabulators or change indentation using the Tab key, as this breaks the focus chain. The default is false.
Access functions:
| bool | tabChangesFocus() const |
|---|---|
| void | setTabChangesFocus(bool b) |
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#tabChangesFocus
tabStopDistance
instance-attribute
tabStopDistance: float
Qt 5 reference:
tabStopDistance : qreal
This property holds the tab stop distance in pixels
By default, this property contains a value of 80 pixels.
This property was introduced in Qt 5.10.
Access functions:
| qreal | tabStopDistance() const |
|---|---|
| void | setTabStopDistance(qreal distance) |
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#tabStopDistance
textBackgroundColor
textBackgroundColor() -> Any
X.textBackgroundColor() -> PythonQt.QtGui.QColor
Supplemental documentation: Qt 5 reference:
QColor QTextEdit::textBackgroundColor() const
Returns the text background color of the current format.
This function was introduced in Qt 4.4.
See also setTextBackgroundColor().
Upstream PySide2 reference signatures (binding differences may apply):
textBackgroundColor(self) -> PySide2.QtGui.QColor
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#textBackgroundColor
textChanged
textChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextEdit.textChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTextEdit::textChanged()
This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.
Note: Notifier signal for property html. Notifier signal for property markdown.
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#textChanged
textColor
textColor() -> Any
X.textColor() -> PythonQt.QtGui.QColor
Supplemental documentation: Qt 5 reference:
QColor QTextEdit::textColor() const
Returns the text color of the current format.
See also setTextColor().
Upstream PySide2 reference signatures (binding differences may apply):
textColor(self) -> PySide2.QtGui.QColor
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#textColor
textCursor
textCursor() -> Any
X.textCursor() -> PythonQt.QtGui.QTextCursor
Supplemental documentation: Qt 5 reference:
QTextCursor QTextEdit::textCursor() const
Returns a copy of the QTextCursor that represents the currently visible cursor. Note that changes on the returned cursor do not affect QTextEdit's cursor; use setTextCursor() to update the visible cursor.
See also setTextCursor().
Upstream PySide2 reference signatures (binding differences may apply):
textCursor(self) -> PySide2.QtGui.QTextCursor
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#textCursor
textInteractionFlags
instance-attribute
textInteractionFlags: Any
Qt 5 reference:
textInteractionFlags : Qt::TextInteractionFlags
Specifies how the widget should interact with user input.
The default value depends on whether the QTextEdit is read-only or editable, and whether it is a QTextBrowser or not.
This property was introduced in Qt 4.2.
Access functions:
| Qt::TextInteractionFlags | textInteractionFlags() const |
|---|---|
| void | setTextInteractionFlags(Qt::TextInteractionFlags flags) |
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#textInteractionFlags
timerEvent
timerEvent(e: Any) -> None
X.timerEvent(e)
Upstream PySide2 reference signatures (binding differences may apply):
timerEvent(self, e: PySide2.QtCore.QTimerEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#timerEvent
toHtml
toHtml() -> str
X.toHtml() -> str
Upstream PySide2 reference signatures (binding differences may apply):
toHtml(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html#toHtml