PinchEvent QML Type
For specifying information about a pinch event. More...
|Import Statement:||import QtQuick|
- accepted : bool
- angle : real
- center : QPointF
- point1 : QPointF
- point2 : QPointF
- pointCount : int
- previousAngle : real
- previousCenter : QPointF
- previousScale : real
- rotation : real
- scale : real
- startCenter : QPointF
- startPoint1 : QPointF
- startPoint2 : QPointF
The PinchEvent type was added in QtQuick 1.1
previousCenter properties provide the center position between the two touch points.
previousScale properties provide the scale factor.
rotation properties provide the angle between the two points and the amount of rotation.
startPoint2 properties provide the positions of the touch points.
accepted property may be set to false in the
onPinchStarted handler if the gesture should not be handled.
See also PinchArea.
[read-only] center : QPointF
[read-only] previousCenter : QPointF
[read-only] startCenter : QPointF
These properties hold the position of the center point between the two touch points.
centeris the current center point
previousCenteris the center point of the previous event.
startCenteris the center point when the gesture began
These properties hold the scale factor determined by the change in distance between the two touch points.
scaleis the current scale factor.
previousScaleis the scale factor of the previous event.
When a pinch gesture is started, the scale is
These properties hold the angle between the two touch points.
angleis the current angle between the two points in the range -180 to 180.
previousAngleis the angle of the previous event.
rotationis the total rotation since the pinch gesture started.
When a pinch gesture is started, the rotation is
[read-only] point1 : QPointF
[read-only] point2 : QPointF
[read-only] startPoint1 : QPointF
[read-only] startPoint2 : QPointF
These properties provide the actual touch points generating the pinch.
point2hold the current positions of the points.
startPoint2hold the positions of the points when the second point was touched.
accepted : bool
Setting this property to false in the
PinchArea::onPinchStarted handler will result in no further pinch events being generated, and the gesture ignored.
[read-only] pointCount : int
Holds the number of points currently touched. The PinchArea will not react until two touch points have initited a gesture, but will remain active until all touch points have been released.
© 2023 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.