QGraphicsScale

Inheritance diagram of PySide2.QtWidgets.QGraphicsScale

Note

This class was introduced in Qt 4.6.

Synopsis

Functions

Signals

Detailed Description

The PySide2.QtWidgets.QGraphicsScale class provides a scale transformation.

PySide2.QtWidgets.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 PySide2.QtCore.QPointF (0, 0).

The parameters PySide2.QtWidgets.QGraphicsScale.xScale() , PySide2.QtWidgets.QGraphicsScale.yScale() , and PySide2.QtWidgets.QGraphicsScale.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 PySide2.QtWidgets.QGraphicsScale.xScale() value will mirror the item horizontally. A negative PySide2.QtWidgets.QGraphicsScale.yScale() value will flip the item vertically. A negative PySide2.QtWidgets.QGraphicsScale.zScale() will flip the item end for end.

class PySide2.QtWidgets.QGraphicsScale([parent=nullptr])
Parameters:parentPySide2.QtCore.QObject

Constructs an empty PySide2.QtWidgets.QGraphicsScale object with the given parent .

PySide2.QtWidgets.QGraphicsScale.origin()
Return type:PySide2.QtGui.QVector3D
PySide2.QtWidgets.QGraphicsScale.originChanged()
PySide2.QtWidgets.QGraphicsScale.scaleChanged()
PySide2.QtWidgets.QGraphicsScale.setOrigin(point)
Parameters:pointPySide2.QtGui.QVector3D
PySide2.QtWidgets.QGraphicsScale.setXScale(arg__1)
Parameters:arg__1PySide2.QtCore.qreal
PySide2.QtWidgets.QGraphicsScale.setYScale(arg__1)
Parameters:arg__1PySide2.QtCore.qreal
PySide2.QtWidgets.QGraphicsScale.setZScale(arg__1)
Parameters:arg__1PySide2.QtCore.qreal
PySide2.QtWidgets.QGraphicsScale.xScale()
Return type:PySide2.QtCore.qreal
PySide2.QtWidgets.QGraphicsScale.xScaleChanged()
PySide2.QtWidgets.QGraphicsScale.yScale()
Return type:PySide2.QtCore.qreal
PySide2.QtWidgets.QGraphicsScale.yScaleChanged()
PySide2.QtWidgets.QGraphicsScale.zScale()
Return type:PySide2.QtCore.qreal
PySide2.QtWidgets.QGraphicsScale.zScaleChanged()