QGraphicsScale¶
The
QGraphicsScale
class provides a scale transformation. More…
New in version 4.6.
Synopsis¶
Functions¶
Signals¶
def
originChanged
()def
scaleChanged
()def
xScaleChanged
()def
yScaleChanged
()def
zScaleChanged
()
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
, andzScale
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 negativexScale
value will mirror the item horizontally. A negativeyScale
value will flip the item vertically. A negativezScale
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 givenparent
.
-
PySide2.QtWidgets.QGraphicsScale.
origin
()¶ - Return type
QVector3D
See also
-
PySide2.QtWidgets.QGraphicsScale.
originChanged
()¶
-
PySide2.QtWidgets.QGraphicsScale.
scaleChanged
()¶
-
PySide2.QtWidgets.QGraphicsScale.
xScale
()¶ - Return type
qreal
See also
-
PySide2.QtWidgets.QGraphicsScale.
xScaleChanged
()¶
-
PySide2.QtWidgets.QGraphicsScale.
yScale
()¶ - Return type
qreal
See also
-
PySide2.QtWidgets.QGraphicsScale.
yScaleChanged
()¶
-
PySide2.QtWidgets.QGraphicsScale.
zScale
()¶ - Return type
qreal
See also
-
PySide2.QtWidgets.QGraphicsScale.
zScaleChanged
()¶
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.