MapPinchEventMapPinchEvent element provides basic information about pinch event. More... This type was introduced in Qt Location 5.0. PropertiesDetailed DescriptionMapPinchEvent element provides basic information about pinch event. They are present in handlers of MapPinch (for example pinchStarted/pinchUpdated). Events are only guaranteed to be valid for the duration of the handler. Except for the accepted property, all properties are read-only. Example UsageThe following example enables the pinch gesture on a map and reacts to the finished event. Map { id: map pinch.enabled: true pinch.onPinchFinished:{ var coordinate1 = map.toCoordinate(pinch.point1) var coordinate2 = map.toCoordinate(pinch.point2) console.log("Pinch startet at:") console.log(" Points (" + pinch.point1.x + ", " + pinch.point1.y + ") - (" + pinch.point2.x + ", " + pinch.point2.y + ")") console.log(" Coordinates (" + coordinate1.latitude + ", " + coordinate1.longitude + ") - (" + coordinate2.latitude + ", " + coordinate2.longitude + ")") } } Property DocumentationSetting this property to false in the MapPinch::onPinchStarted handler will result in no further pinch events being generated, and the gesture ignored. This read-only property holds the current angle between the two points in the range -180 to 180. Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position. This read-only property holds the current center point. These read-only properties hold the actual touch points generating the pinch. The points are not in any particular order. This read-only property holds the number of points currently touched. The MapPinch will not react until two touch points have initiated a gesture, but will remain active until all touch points have been released. |