PinchArea QML Element
The PinchArea item enables simple pinch gesture handling. More...
| Inherits: |
Properties
- enabled : bool
- pinch
- pinch.target : Item
- pinch.active : bool
- pinch.minimumScale : real
- pinch.maximumScale : real
- pinch.minimumRotation : real
- pinch.maximumRotation : real
- pinch.dragAxis : enumeration
- pinch.minimumX : real
- pinch.maximumX : real
- pinch.minimumY : real
- pinch.maximumY : real
Signals
Detailed Description
The PinchArea element was added in QtQuick 1.1
A PinchArea is an invisible item that is typically used in conjunction with a visible item in order to provide pinch gesture handling for that item.
The enabled property is used to enable and disable pinch handling for the proxied item. When disabled, the pinch area becomes transparent to mouse/touch events.
PinchArea can be used in two ways:
- setting a
pinch.targetto provide automatic interaction with an element - using the onPinchStarted, onPinchUpdated and onPinchFinished handlers
See also PinchEvent.
Property Documentation
This property holds whether the item accepts pinch gestures.
This property defaults to true.
pinch.target : Item |
pinch provides a convenient way to make an item react to pinch gestures.
pinch.targetspecifies the id of the item to drag.pinch.activespecifies if the target item is currently being dragged.pinch.minimumScaleandpinch.maximumScalelimit the range of the Item::scale property.pinch.minimumRotationandpinch.maximumRotationlimit the range of the Item::rotation property.pinch.dragAxisspecifies whether dragging in not allowed (Pinch.NoDrag), can be done horizontally (Pinch.XAxis), vertically (Pinch.YAxis), or both (Pinch.XandYAxis)pinch.minimumandpinch.maximumlimit how far the target can be dragged along the corresponding axes.
Signal Documentation
This handler is called when the pinch area detects that a pinch gesture has finished.
The pinch parameter provides information about the pinch gesture, including the scale, center and angle of the pinch.
This handler is called when the pinch area detects that a pinch gesture has started.
The pinch parameter provides information about the pinch gesture, including the scale, center and angle of the pinch.
To ignore this gesture set the pinch.accepted property to false. The gesture will be cancelled and no further events will be sent.
This handler is called when the pinch area detects that a pinch gesture has changed.
The pinch parameter provides information about the pinch gesture, including the scale, center and angle of the pinch.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.