Skip to content

GraphicsSimpleTextItem

Qt Base Class: QGraphicsSimpleTextItem

Signature: QGraphicsSimpleTextItem(self, parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None) -> None QGraphicsSimpleTextItem(self, text: str, parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None) -> None

Base classes

Name Children Inherits
AbstractGraphicsShapeItemMixin
prettyqt.widgets.abstractgraphicsshapeitem
QGraphicsSimpleTextItem
PySide6.QtWidgets
QGraphicsSimpleTextItem(self, parent: Optional[PySide6.QtWidgets.QGraphicsItem] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473296169024["widgets.GraphicsSimpleTextItem"]
  1473293714592["widgets.AbstractGraphicsShapeItemMixin"]
  1473293706784["widgets.GraphicsItemMixin"]
  140713234304496["builtins.object"]
  1473290840896["QtWidgets.QGraphicsSimpleTextItem"]
  1473290838944["QtWidgets.QAbstractGraphicsShapeItem"]
  1473290795024["QtWidgets.QGraphicsItem"]
  1473291690208["Shiboken.Object"]
  1473293714592 --> 1473296169024
  1473293706784 --> 1473293714592
  140713234304496 --> 1473293706784
  1473290840896 --> 1473296169024
  1473290838944 --> 1473290840896
  1473290795024 --> 1473290838944
  1473291690208 --> 1473290795024
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: AbstractGraphicsShapeItemMixin, QGraphicsSimpleTextItem

Simple text path item that you can add to a QGraphicsScene.

Source code in prettyqt\widgets\graphicssimpletextitem.py
class GraphicsSimpleTextItem(
    widgets.AbstractGraphicsShapeItemMixin, widgets.QGraphicsSimpleTextItem
):
    """Simple text path item that you can add to a QGraphicsScene."""

    def __repr__(self):
        return get_repr(self, self.text())