QPinchGestureclass describes a pinch gesture made by the user. 更多 …
4.6 版新增。
def
centerPoint
()
def
changeFlags
()
def
lastCenterPoint
()
def
lastRotationAngle
()
def
lastScaleFactor
()
def
rotationAngle
()
def
scaleFactor
()
def
setCenterPoint
(value)
def
setChangeFlags
(value)
def
setLastCenterPoint
(value)
def
setLastRotationAngle
(value)
def
setLastScaleFactor
(value)
def
setRotationAngle
(value)
def
setScaleFactor
(value)
def
setStartCenterPoint
(value)
def
setTotalChangeFlags
(value)
def
setTotalRotationAngle
(value)
def
setTotalScaleFactor
(value)
def
startCenterPoint
()
def
totalChangeFlags
()
def
totalRotationAngle
()
def
totalScaleFactor
()
A pinch gesture is a form of touch user input in which the user typically touches two points on the input device with a thumb and finger, before moving them closer together or further apart to change the scale factor, zoom, or level of detail of the user interface.
For an overview of gesture handling in Qt and information on using gestures in your applications, see the 在 Widget 和图形视图中的手势 文档。
![]()
Instead of repeatedly applying the same pinching gesture, the user may continue to touch the input device in one place, and apply a second touch to a new point, continuing the gesture. When this occurs, gesture events will continue to be delivered to the target object, containing an instance of
QPinchGesture在GestureUpdated状态。另请参阅
QPinchGesture
(
[
parent=None
]
)
¶
parent
–
QObject
PySide2.QtWidgets.QPinchGesture.
ChangeFlag
¶
This enum describes the changes that can occur to the properties of the gesture object.
|
常量 |
描述 |
|---|---|
|
QPinchGesture.ScaleFactorChanged |
The scale factor held by
|
|
QPinchGesture.RotationAngleChanged |
The rotation angle held by
|
|
QPinchGesture.CenterPointChanged |
The center point held by
|
PySide2.QtWidgets.QPinchGesture.
centerPoint
(
)
¶
QPointF
另请参阅
PySide2.QtWidgets.QPinchGesture.
changeFlags
(
)
¶
ChangeFlags
另请参阅
PySide2.QtWidgets.QPinchGesture.
lastCenterPoint
(
)
¶
QPointF
另请参阅
PySide2.QtWidgets.QPinchGesture.
lastRotationAngle
(
)
¶
qreal
PySide2.QtWidgets.QPinchGesture.
lastScaleFactor
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QPinchGesture.
rotationAngle
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QPinchGesture.
scaleFactor
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QPinchGesture.
setCenterPoint
(
value
)
¶
value
–
QPointF
另请参阅
PySide2.QtWidgets.QPinchGesture.
setChangeFlags
(
value
)
¶
value
–
ChangeFlags
另请参阅
PySide2.QtWidgets.QPinchGesture.
setLastCenterPoint
(
value
)
¶
value
–
QPointF
另请参阅
PySide2.QtWidgets.QPinchGesture.
setLastRotationAngle
(
value
)
¶
value
–
qreal
另请参阅
PySide2.QtWidgets.QPinchGesture.
setLastScaleFactor
(
value
)
¶
value
–
qreal
另请参阅
PySide2.QtWidgets.QPinchGesture.
setRotationAngle
(
value
)
¶
value
–
qreal
另请参阅
PySide2.QtWidgets.QPinchGesture.
setScaleFactor
(
value
)
¶
value
–
qreal
另请参阅
PySide2.QtWidgets.QPinchGesture.
setStartCenterPoint
(
value
)
¶
value
–
QPointF
另请参阅
PySide2.QtWidgets.QPinchGesture.
setTotalChangeFlags
(
value
)
¶
value
–
ChangeFlags
另请参阅
PySide2.QtWidgets.QPinchGesture.
setTotalRotationAngle
(
value
)
¶
value
–
qreal
另请参阅
PySide2.QtWidgets.QPinchGesture.
setTotalScaleFactor
(
value
)
¶
value
–
qreal
另请参阅
PySide2.QtWidgets.QPinchGesture.
startCenterPoint
(
)
¶
QPointF
PySide2.QtWidgets.QPinchGesture.
totalChangeFlags
(
)
¶
ChangeFlags
PySide2.QtWidgets.QPinchGesture.
totalRotationAngle
(
)
¶
qreal
PySide2.QtWidgets.QPinchGesture.
totalScaleFactor
(
)
¶
qreal