QGraphicsScale

The QGraphicsScale class provides a scale transformation. More

Inheritance diagram of PySide6.QtWidgets.QGraphicsScale

New in version 4.6.

Synopsis

Functions

Detailed Description

QGraphicsScene provides certain parameters to help control how the scale should be applied.

The origin is the point that the item is scaled from (i.e., it stays fixed relative to the parent as the rest of the item grows). By default the origin is QPointF (0, 0).

The parameters xScale , yScale , and zScale describe the scale factors to apply in horizontal, vertical, and depth directions. They can take on any value, including 0 (to collapse the item to a point) or negative value. A negative xScale value will mirror the item horizontally. A negative yScale value will flip the item vertically. A negative zScale will flip the item end for end.

See also

QGraphicsTransform setScale() scale()

class PySide6.QtWidgets.QGraphicsScale([parent=None])
Parameters

parentPySide6.QtCore.QObject

Constructs an empty QGraphicsScale object with the given parent.

PySide6.QtWidgets.QGraphicsScale.origin()
Return type

PySide6.QtGui.QVector3D

See also

setOrigin()

PySide6.QtWidgets.QGraphicsScale.originChanged()
PySide6.QtWidgets.QGraphicsScale.scaleChanged()
PySide6.QtWidgets.QGraphicsScale.setOrigin(point)
Parameters

pointPySide6.QtGui.QVector3D

See also

origin()

PySide6.QtWidgets.QGraphicsScale.setXScale(arg__1)
Parameters

arg__1 – float

See also

xScale()

PySide6.QtWidgets.QGraphicsScale.setYScale(arg__1)
Parameters

arg__1 – float

See also

yScale()

PySide6.QtWidgets.QGraphicsScale.setZScale(arg__1)
Parameters

arg__1 – float

See also

zScale()

PySide6.QtWidgets.QGraphicsScale.xScale()
Return type

float

See also

setXScale()

PySide6.QtWidgets.QGraphicsScale.xScaleChanged()
PySide6.QtWidgets.QGraphicsScale.yScale()
Return type

float

See also

setYScale()

PySide6.QtWidgets.QGraphicsScale.yScaleChanged()
PySide6.QtWidgets.QGraphicsScale.zScale()
Return type

float

See also

setZScale()

PySide6.QtWidgets.QGraphicsScale.zScaleChanged()