Skip to content

TextEdit

Sub classes

Name Children Inherits
AutoResizeTextEdit
prettyqt.custom_widgets.autoresizingtextedit
TextEdit which adjusts its height to the contained text.

    Base classes

    Name Children Inherits
    TextEditMixin
    prettyqt.widgets.textedit
    QTextEdit
    PySide6.QtWidgets
    QTextEdit(self, text: str, /, parent: PySide6.QtWidgets.QWidget | None \= None, *, autoFormatting: PySide6.QtWidgets.QTextEdit.AutoFormattingFlag | None \= None, tabChangesFocus: bool | None \= None, documentTitle: str | None \= None, undoRedoEnabled: bool | None \= None, lineWrapMode: PySide6.QtWidgets.QTextEdit.LineWrapMode | None \= None, lineWrapColumnOrWidth: int | None \= None, readOnly: bool | None \= None, markdown: str | None \= None, html: str | None \= None, plainText: str | None \= None, overwriteMode: bool | None \= None, tabStopDistance: float | None \= None, acceptRichText: bool | None \= None, cursorWidth: int | None \= None, textInteractionFlags: PySide6.QtCore.Qt.TextInteractionFlag | None \= None, document: PySide6.QtGui.QTextDocument | None \= None, placeholderText: str | None \= None) -> None

    ⋔ Inheritance diagram

    graph TD
      1572761695["widgets.TextEdit"]
      1964080816["widgets.TextEditMixin"]
      1259044718["widgets.AbstractScrollAreaMixin"]
      1689631995["widgets.FrameMixin"]
      829357528["widgets.WidgetMixin"]
      3227531497["core.ObjectMixin"]
      2751680898["builtins.object"]
      625385617["gui.PaintDeviceMixin"]
      2951066496["QtWidgets.QTextEdit"]
      1459025998["QtWidgets.QAbstractScrollArea"]
      3822057598["QtWidgets.QFrame"]
      3620195106["QtWidgets.QWidget"]
      3984060476["QtCore.QObject"]
      37984305["Shiboken.Object"]
      673956333["QtGui.QPaintDevice"]
      1964080816 --> 1572761695
      1259044718 --> 1964080816
      1689631995 --> 1259044718
      829357528 --> 1689631995
      3227531497 --> 829357528
      2751680898 --> 3227531497
      625385617 --> 829357528
      2751680898 --> 625385617
      2751680898 --> 829357528
      2751680898 --> 1689631995
      2751680898 --> 1259044718
      2751680898 --> 1964080816
      2951066496 --> 1572761695
      1459025998 --> 2951066496
      3822057598 --> 1459025998
      3620195106 --> 3822057598
      3984060476 --> 3620195106
      37984305 --> 3984060476
      2751680898 --> 37984305
      673956333 --> 3620195106
      37984305 --> 673956333

    🛈 DocStrings

    Bases: TextEditMixin, QTextEdit

    Widget that is used to edit and display both plain and rich text.

    Source code in prettyqt/widgets/textedit.py
    class TextEdit(TextEditMixin, widgets.QTextEdit):
        """Widget that is used to edit and display both plain and rich text."""
    

    :fa-brands-github: Show source on GitHub