Skip to content

GraphicsWidget

Base classes

Name Children Inherits
GraphicsWidgetMixin
prettyqt.widgets.graphicswidget
QGraphicsWidget
PySide6.QtWidgets
QGraphicsWidget(self, /, parent: PySide6.QtWidgets.QGraphicsItem | None \= None, wFlags: PySide6.QtCore.Qt.WindowType \= Default(Qt.WindowFlags), *, palette: PySide6.QtGui.QPalette | None \= None, font: PySide6.QtGui.QFont | None \= None, layoutDirection: PySide6.QtCore.Qt.LayoutDirection | None \= None, size: PySide6.QtCore.QSizeF | None \= None, minimumSize: PySide6.QtCore.QSizeF | None \= None, preferredSize: PySide6.QtCore.QSizeF | None \= None, maximumSize: PySide6.QtCore.QSizeF | None \= None, sizePolicy: PySide6.QtWidgets.QSizePolicy | None \= None, focusPolicy: PySide6.QtCore.Qt.FocusPolicy | None \= None, windowFlags: PySide6.QtCore.Qt.WindowType | None \= None, windowTitle: str | None \= None, geometry: PySide6.QtCore.QRectF | None \= None, autoFillBackground: bool | None \= None, layout: PySide6.QtWidgets.QGraphicsLayout | None \= None) -> None

⋔ Inheritance diagram

graph TD
  2984291411["widgets.GraphicsWidget"]
  1217014474["widgets.GraphicsWidgetMixin"]
  1453500865["widgets.GraphicsObjectMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  1638127052["widgets.GraphicsItemMixin"]
  1752462451["widgets.GraphicsLayoutItemMixin"]
  356746758["QtWidgets.QGraphicsWidget"]
  941044538["QtWidgets.QGraphicsObject"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  2584426969["QtWidgets.QGraphicsItem"]
  2053307106["QtWidgets.QGraphicsLayoutItem"]
  1217014474 --> 2984291411
  1453500865 --> 1217014474
  3227531497 --> 1453500865
  2751680898 --> 3227531497
  1638127052 --> 1453500865
  2751680898 --> 1638127052
  2751680898 --> 1453500865
  1752462451 --> 1217014474
  2751680898 --> 1752462451
  2751680898 --> 1217014474
  356746758 --> 2984291411
  941044538 --> 356746758
  3984060476 --> 941044538
  37984305 --> 3984060476
  2751680898 --> 37984305
  2584426969 --> 941044538
  37984305 --> 2584426969
  2053307106 --> 356746758
  37984305 --> 2053307106

🛈 DocStrings

Bases: GraphicsWidgetMixin, QGraphicsWidget

The base class for all widget items in a QGraphicsScene.

Source code in prettyqt/widgets/graphicswidget.py
class GraphicsWidget(GraphicsWidgetMixin, widgets.QGraphicsWidget):
    """The base class for all widget items in a QGraphicsScene."""

:fa-brands-github: Show source on GitHub