Skip to content

GraphicsSimpleTextItem

Base classes

Name Children Inherits
AbstractGraphicsShapeItemMixin
prettyqt.widgets.abstractgraphicsshapeitem
QGraphicsSimpleTextItem
PySide6.QtWidgets
QGraphicsSimpleTextItem(self, text: str, /, parent: PySide6.QtWidgets.QGraphicsItem | None \= None) -> None

⋔ Inheritance diagram

graph TD
  2457496729["widgets.GraphicsSimpleTextItem"]
  1457645213["widgets.AbstractGraphicsShapeItemMixin"]
  1638127052["widgets.GraphicsItemMixin"]
  2751680898["builtins.object"]
  1351447245["QtWidgets.QGraphicsSimpleTextItem"]
  3535066864["QtWidgets.QAbstractGraphicsShapeItem"]
  2584426969["QtWidgets.QGraphicsItem"]
  37984305["Shiboken.Object"]
  1457645213 --> 2457496729
  1638127052 --> 1457645213
  2751680898 --> 1638127052
  2751680898 --> 1457645213
  1351447245 --> 2457496729
  3535066864 --> 1351447245
  2584426969 --> 3535066864
  37984305 --> 2584426969
  2751680898 --> 37984305

🛈 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())

:fa-brands-github: Show source on GitHub