QML GestureArea ElementThe GestureArea item enables simple gesture handling. More... Inherits Item Detailed DescriptionA GestureArea is like a MouseArea, but it has signals for gesture events. Warning: Elements in the Qt.labs module are not guaranteed to remain compatible in future versions. Warning: GestureArea is an experimental element whose development has been discontinued. PinchArea is available in QtQuick 1.1 and handles two finger gesture input. Note: This element is only functional on devices with touch input. import Qt.labs.gestures 1.0 GestureArea { anchors.fill: parent // onPan: ... gesture.acceleration ... // onPinch: ... gesture.rotationAngle ... // onSwipe: ... // onTapAndHold: ... // onTap: ... // onGesture: ... } Each signal has a gesture parameter that has the properties of the gesture.
Custom gestures, handled by onGesture, will have custom properties. GestureArea is an invisible item: it is never painted. See also MouseArea.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia. Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. |