Skip to content

TextDocument

Base classes

Name Children Inherits
TextDocumentMixin
prettyqt.gui.textdocument
QTextDocument
PySide6.QtGui
QTextDocument(self, text: str, /, parent: PySide6.QtCore.QObject | None \= None, *, undoRedoEnabled: bool | None \= None, modified: bool | None \= None, pageSize: PySide6.QtCore.QSizeF | None \= None, defaultFont: PySide6.QtGui.QFont | None \= None, useDesignMetrics: bool | None \= None, layoutEnabled: bool | None \= None, size: PySide6.QtCore.QSizeF | None \= None, textWidth: float | None \= None, blockCount: int | None \= None, indentWidth: float | None \= None, defaultStyleSheet: str | None \= None, maximumBlockCount: int | None \= None, documentMargin: float | None \= None, baseUrl: PySide6.QtCore.QUrl | None \= None) -> None

⋔ Inheritance diagram

graph TD
  3310527428["gui.TextDocument"]
  4266022672["gui.TextDocumentMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  2821787792["QtGui.QTextDocument"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  4266022672 --> 3310527428
  3227531497 --> 4266022672
  2751680898 --> 3227531497
  2751680898 --> 4266022672
  2821787792 --> 3310527428
  3984060476 --> 2821787792
  37984305 --> 3984060476
  2751680898 --> 37984305

🛈 DocStrings

Bases: TextDocumentMixin, QTextDocument

Source code in prettyqt/gui/textdocument.py
class TextDocument(TextDocumentMixin, gui.QTextDocument):
    pass

:fa-brands-github: Show source on GitHub