QGraphicsScaleclass provides a scale transformation. 更多 …
4.6 版新增。
def
originChanged
()
def
scaleChanged
()
def
xScaleChanged
()
def
yScaleChanged
()
def
zScaleChanged
()
QGraphicsSceneprovides 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,和zScaledescribe 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 negativexScalevalue will mirror the item horizontally. A negativeyScalevalue will flip the item vertically. A negativezScalewill flip the item end for end.另请参阅
QGraphicsTransformsetScale()scale()
QGraphicsScale
(
[
parent=None
]
)
¶
- param parent
QObject
构造空
QGraphicsScale
对象采用给定
parent
.
PySide2.QtWidgets.QGraphicsScale.
origin
(
)
¶
QVector3D
另请参阅
PySide2.QtWidgets.QGraphicsScale.
originChanged
(
)
¶
PySide2.QtWidgets.QGraphicsScale.
scaleChanged
(
)
¶
PySide2.QtWidgets.QGraphicsScale.
xScale
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QGraphicsScale.
xScaleChanged
(
)
¶
PySide2.QtWidgets.QGraphicsScale.
yScale
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QGraphicsScale.
yScaleChanged
(
)
¶
PySide2.QtWidgets.QGraphicsScale.
zScale
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QGraphicsScale.
zScaleChanged
(
)
¶