Skip to content

HtmlItemDelegate

Qt Base Class: QStyledItemDelegate

Signature: QStyledItemDelegate(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
BaseMarkupDelegate
prettyqt.itemdelegates.htmlitemdelegate

⋔ Inheritance diagram

graph TD
  1473367031600["itemdelegates.HtmlItemDelegate"]
  1473367009152["itemdelegates.BaseMarkupDelegate"]
  1473296354464["widgets.StyledItemDelegate"]
  1473296344704["widgets.AbstractItemDelegateMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473293727280["QtWidgets.QStyledItemDelegate"]
  1473293758512["QtWidgets.QAbstractItemDelegate"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473367009152 --> 1473367031600
  1473296354464 --> 1473367009152
  1473296344704 --> 1473296354464
  1473299815024 --> 1473296344704
  140713234304496 --> 1473299815024
  1473293727280 --> 1473296354464
  1473293758512 --> 1473293727280
  1473288842240 --> 1473293758512
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: BaseMarkupDelegate

Delegate do display HTML text.

Source code in prettyqt\itemdelegates\htmlitemdelegate.py
class HtmlItemDelegate(BaseMarkupDelegate):
    """Delegate do display HTML text."""

    ID = "html"

    def set_text(self, text: str):
        self.doc.setHtml(text)

⌗ Property table

Qt Property Type Doc
objectName QString

Delegate ID: html