PinchEvent QML Type

PinchEvent type is added to the incoming QtQuick 1.1.
Center, StartCenter, previousCenter property contains a central position between the two touch points.
Scale previousScale property and provides a scaling factor.
Angle, and rotation previousAngle property provided between the two points and corresponding to the rotation angle.
Point1, Point2, startPoint1, startPoint2 property provides the location of the touch point.
at the accepted property May bE the SET to false in at the onPinchStarted Handler IF at the Gesture Should not bE the Handled.
If the finger touch event does not want to be treated, accepted attribute may be used to handle up onPinchStarted set to false.
may be found PinchArea.

 

Property Documentation
accepted: bool

Finger touch time setting this property to false, PinchArea :: onPinchStarted handle will no longer be generated after the cause, finger event is ignored.
Angle: Real
This property holds the angle between the two touch points.

angle is the angle between the range of -180 to 180 points in the current again.

previousAngle is the angle before the event.

rotation is the total since the beginning of the finger touches the angle of rotation.

When a finger touches the beginning, the rotation angle is 0.0.
Center: QPointF
This property holds the center point between the two touch points.

The current center is the central point.

previousCenter is the central point before the event generated.

startCenter is the central point when the finger touches the beginning.

 

point1: QPointF
These attributes provide the exact location of the touch point information generated by the touch.

point1 and point2 holds the current location of these points.
startPoint1 startPoint2 holds position information and the second point being touched.

point2: QPointF
These properties provide precise location information of the touch of the touch point generated.
Point1 Point2 and holds the current location of these points.
startPoint1 startPoint2 holds position information and the second point being touched.

pointCount: int
to preserve the current .PinchArea touched the number of points will not respond, know two points initialize a gesture, but will remain active state know all the touch points is released.

previousAngle: Real
the property contains two touch points between Angle.

An angle between the two points is -180 to 180

previousAngle angle before the event is generated.

rotation after starting from finger touch to the current total angle of rotation.

When a gesture is started, the rotation angle is 0.0.


previousCenter: QPointF
These properties hold the position of the center point between the two touch points.

The current center is the central point.

previousCenter is the central point before the event generated.

startCenter when the center point of the gesture starts.


previousScale: real
These properties preserved determined by the distance between the two touch points scaling factor.

scale is the current scaling factor.

previousScale event generated before scaling factor.
the When Started A pinch-Gesture IS, IS 1.0 The Scale.

When the gesture is started, the scaling factor is 1.0.


rotation: real
These attributes stored in the angle between the two touch points.

An angle between two points is a current -180 to 180

previousAngle angle before the event is generated.

Since the rotation is started touching gesture total rotation angle.

When the gesture touch start, rotation is 0.0.


scale: real
These stored attribute changed by the distance between the two touch points determined by a scaling factor.

scale is the current scaling factor.

previousScale scaling factor is generated before the event.

When the touch gestures starts, a scaling factor of 1.0.


startCenter: QPointF
The property contains a central point between the two o'clock position.

The current center is the central point.

previousCenter is the central point before the event generated.

startCenter is the center point of time when the gesture starts.


startPoint1: QPointF
this property offers the exact point of the touch gesture generated.

point1 and point2 holds the position of the current point. (2 yo)

startPoint1 and startPoint2 stored position when the second point of the touched point.


startPoint2: QPointF
These properties provide precise touch-point gesture is generated.
Point1 Point2 and holds the position of the current point (2 yo).

startPoint1 and startPoint2 preserved when the second point is touched, the point's position.

Published 90 original articles · won praise 26 · Views 100,000 +

Guess you like

Origin blog.csdn.net/sky_person/article/details/50133353