内容表

上一话题

QGraphicsRotation

下一话题

QGraphicsScene

QGraphicsScale

QGraphicsScale class provides a scale transformation. 更多

Inheritance diagram of PySide2.QtWidgets.QGraphicsScale

4.6 版新增。

概要

函数

详细描述

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).

参数 xScale , yScale ,和 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.

class QGraphicsScale ( [ parent=None ] )
param parent

QObject

构造空 QGraphicsScale 对象采用给定 parent .

PySide2.QtWidgets.QGraphicsScale. origin ( )
返回类型

QVector3D

另请参阅

setOrigin()

PySide2.QtWidgets.QGraphicsScale. originChanged ( )
PySide2.QtWidgets.QGraphicsScale. scaleChanged ( )
PySide2.QtWidgets.QGraphicsScale. setOrigin ( point )
参数

point QVector3D

另请参阅

origin()

PySide2.QtWidgets.QGraphicsScale. setXScale ( arg__1 )
参数

arg__1 qreal

另请参阅

xScale()

PySide2.QtWidgets.QGraphicsScale. setYScale ( arg__1 )
参数

arg__1 qreal

另请参阅

yScale()

PySide2.QtWidgets.QGraphicsScale. setZScale ( arg__1 )
参数

arg__1 qreal

另请参阅

zScale()

PySide2.QtWidgets.QGraphicsScale. xScale ( )
返回类型

qreal

另请参阅

setXScale()

PySide2.QtWidgets.QGraphicsScale. xScaleChanged ( )
PySide2.QtWidgets.QGraphicsScale. yScale ( )
返回类型

qreal

另请参阅

setYScale()

PySide2.QtWidgets.QGraphicsScale. yScaleChanged ( )
PySide2.QtWidgets.QGraphicsScale. zScale ( )
返回类型

qreal

另请参阅

setZScale()

PySide2.QtWidgets.QGraphicsScale. zScaleChanged ( )