Details
-
Task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
Q_PROPERTY(PinchOrigin pinchOrigin READ pinchOrigin WRITE setPinchOrigin NOTIFY pinchOriginChanged)
enum PinchOrigin {
FirstPoint, PinchCenter, TargetCenter
};
/*!
\qmlproperty real QtQuick::PinchHandler::pinchOrigin
The point to be held in place, around which the \l target is scaled and
rotated.
\value FirstPoint
the first touch point, wherever the first finger is pressed
\value PinchCenter
the centroid between all the touch points at the time when the
PinchHandler becomes \l active
\value TargetCenter
the center of the \l target
*/
Right now it has the PinchCenter behavior, but it still seems like others would be useful in some cases.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-70292 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
238526,2 | Remove the PinchHandler.pinchOrigin property for now | 5.12 | qt/qtdeclarative | Status: MERGED | +2 | 0 |