Skip to content

GraphicsTextItem

Qt Base Class: QGraphicsTextItem

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

Base classes

Name Children Inherits
GraphicsObjectMixin
prettyqt.widgets.graphicsobject
QGraphicsTextItem
PySide6.QtWidgets
QGraphicsTextItem(self, parent: Optional[PySide6.QtWidgets.QGraphicsItem] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473293698000["widgets.GraphicsTextItem"]
  1473293697024["widgets.GraphicsObjectMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473293706784["widgets.GraphicsItemMixin"]
  1473293738016["QtWidgets.QGraphicsTextItem"]
  1473365816752["QtWidgets.QGraphicsObject"]
  1473290795024["QtWidgets.QGraphicsItem"]
  1473291690208["Shiboken.Object"]
  1473288842240["QtCore.QObject"]
  1473293697024 --> 1473293698000
  1473299815024 --> 1473293697024
  140713234304496 --> 1473299815024
  1473293706784 --> 1473293697024
  140713234304496 --> 1473293706784
  1473293738016 --> 1473293698000
  1473365816752 --> 1473293738016
  1473290795024 --> 1473365816752
  1473291690208 --> 1473290795024
  140713234304496 --> 1473291690208
  1473288842240 --> 1473365816752
  1473291690208 --> 1473288842240

🛈 DocStrings

Bases: GraphicsObjectMixin, QGraphicsTextItem

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

Source code in prettyqt\widgets\graphicstextitem.py
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())

⌗ Property table

Qt Property Type Doc
objectName QString
parent QGraphicsObject
opacity double
enabled bool
visible bool
pos QPointF
x double
y double
z double
rotation double
scale double
transformOriginPoint QPointF
effect QGraphicsEffect
children QDeclarativeListProperty
width double
height double