Skip to content

GraphicsScale

Base classes

Name Children Inherits
GraphicsTransformMixin
prettyqt.widgets.graphicstransform
QGraphicsScale
PySide6.QtWidgets
QGraphicsScale(self, /, parent: PySide6.QtCore.QObject | None \= None, *, origin: PySide6.QtGui.QVector3D | None \= None, xScale: float | None \= None, yScale: float | None \= None, zScale: float | None \= None) -> None

⋔ Inheritance diagram

graph TD
  2664075879["widgets.GraphicsScale"]
  10991441["widgets.GraphicsTransformMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  3921896075["QtWidgets.QGraphicsScale"]
  1822069311["QtWidgets.QGraphicsTransform"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  10991441 --> 2664075879
  3227531497 --> 10991441
  2751680898 --> 3227531497
  2751680898 --> 10991441
  3921896075 --> 2664075879
  1822069311 --> 3921896075
  3984060476 --> 1822069311
  37984305 --> 3984060476
  2751680898 --> 37984305

🛈 DocStrings

Bases: GraphicsTransformMixin, QGraphicsScale

Source code in prettyqt/widgets/graphicsscale.py
5
6
7
class GraphicsScale(widgets.GraphicsTransformMixin, widgets.QGraphicsScale):
    def set_origin(self, origin: datatypes.Vector3DType):
        self.setOrigin(datatypes.to_vector3d(origin))

:fa-brands-github: Show source on GitHub