2 import Qt.labs.gestures 2.0
7 property int xv:(knob.x-(width-knob.width)/2)*(200/(width-knob.width))
8 property int yv:(knob.y-(height-knob.height)/2)*(200/(height-knob.height))
30 x:parent.width/2-width/2
31 y:parent.width/2-height/2
40 // Only some of the many gesture properties are shown. See Gesture documentation.
45 onStarted: console.log("onStarted pos = (",gesture.position.x,",",gesture.position.y,")")
46 onFinished:console.log("onFinished pos = (",gesture.position.x,",",gesture.position.y,")")
47 onUpdated: console.log("onUpdated pos = (",gesture.position.x,",",gesture.position.y,")");
52 onStarted:console.log("tap onStarted pos = (",gesture.position.x,",",gesture.position.y,")")
53 onFinished:console.log("tap onFinished pos = (",gesture.position.x,",",gesture.position.y,")")
55 console.log("tap onUpdated pos = (",gesture.position.x,",",gesture.position.y,")");
56 // msg.text=gesture.position.x+","+gesture.position.y
60 // console.log("tap and hold pos = (",gesture.position.x,",",gesture.position.y,")")
63 onStarted: console.log("pan onStarted delta = (",gesture.delta.x,",",gesture.delta.y,") acceleration = ",gesture.acceleration)
64 onFinished:console.log("pan onFinished delta = (",gesture.delta.x,",",gesture.delta.y,") acceleration = ",gesture.acceleration)
66 console.log("pan onUpdated pos = (",gesture.delta.x,",",gesture.delta.y,")");
67 msg.text=gesture.delta.x+","+gesture.delta.y;
73 console.log("pinch center = (",gesture.centerPoint.x,",",gesture.centerPoint.y,") rotation =",gesture.rotationAngle," scale =",gesture.scaleFactor)
75 console.log("swipe angle=",gesture.swipeAngle)
77 console.log("gesture hot spot = (",gesture.hotSpot.x,",",gesture.hotSpot.y,")")