QGraphicsScale

The QGraphicsScale class provides a scale transformation. More

Inheritance diagram of PySide2.QtWidgets.QGraphicsScale

New in version 4.6.

Synopsis

Functions

Signals

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 QGraphicsScale([parent=None])
param parent

QObject

Constructs an empty QGraphicsScale object with the given parent .

PySide2.QtWidgets.QGraphicsScale.origin()
Return type

QVector3D

See also

setOrigin()

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

pointQVector3D

See also

origin()

PySide2.QtWidgets.QGraphicsScale.setXScale(arg__1)
Parameters

arg__1qreal

See also

xScale()

PySide2.QtWidgets.QGraphicsScale.setYScale(arg__1)
Parameters

arg__1qreal

See also

yScale()

PySide2.QtWidgets.QGraphicsScale.setZScale(arg__1)
Parameters

arg__1qreal

See also

zScale()

PySide2.QtWidgets.QGraphicsScale.xScale()
Return type

qreal

See also

setXScale()

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

qreal

See also

setYScale()

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

qreal

See also

setZScale()

PySide2.QtWidgets.QGraphicsScale.zScaleChanged()