Skip to content

GraphicsTextItem

Base classes

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

⋔ Inheritance diagram

graph TD
  3001453565["widgets.GraphicsTextItem"]
  1453500865["widgets.GraphicsObjectMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  1638127052["widgets.GraphicsItemMixin"]
  3360577163["QtWidgets.QGraphicsTextItem"]
  941044538["QtWidgets.QGraphicsObject"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  2584426969["QtWidgets.QGraphicsItem"]
  1453500865 --> 3001453565
  3227531497 --> 1453500865
  2751680898 --> 3227531497
  1638127052 --> 1453500865
  2751680898 --> 1638127052
  2751680898 --> 1453500865
  3360577163 --> 3001453565
  941044538 --> 3360577163
  3984060476 --> 941044538
  37984305 --> 3984060476
  2751680898 --> 37984305
  2584426969 --> 941044538
  37984305 --> 2584426969

🛈 DocStrings

Bases: GraphicsObjectMixin, QGraphicsTextItem

Text item that you can add to a QGraphicsScene to display formatted text.

Source code in prettyqt/widgets/graphicstextitem.py
5
6
7
8
9
class GraphicsTextItem(widgets.GraphicsObjectMixin, widgets.QGraphicsTextItem):
    """Text item that you can add to a QGraphicsScene to display formatted text."""

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

:fa-brands-github: Show source on GitHub