Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12
-
None
-
-
c4c27857e0de964a57ae2b919a045f3a82206f56 (qt/qtdeclarative/5.12)
Description
I'm trying to get the centre of the pinch but regardless of whether a target is set on the handler or not, the values are always zero:
import QtQuick 2.12 import QtQuick.Window 2.2 Window { id: window objectName: "window" width: 600 height: 800 visible: true Rectangle { id: rect anchors.fill: parent color: "blue" PinchHandler { id: handler target: null//rect onScaleChanged: { print(scale, centroid.position, centroid.pressPosition, centroid.sceneGrabPosition, centroid.scenePosition, centroid.scenePressPosition) } } } }
Attachments
Issue Links
- relates to
-
QTBUG-70074 PinchHandler's centroid is documented as QPointF but doesn't behave like one
-
- Closed
-