![]() |
Home · All Classes · All Functions · Overviews |
The QGesture class represents a gesture, containing all properties that describe a gesture. More...
#include <QGesture>
Inherits QObject.
This class was introduced in Qt 4.6.
|
|
QGesture ( Qt::GestureType type = Qt::CustomGesture, QObject * parent = 0 ) | |
QGesture ( QObject * parent ) | |
~QGesture () | |
Qt::GestureType | gestureType () const |
bool | hasHotSpot () const |
QPointF | hotSpot () const |
void | setHotSpot ( const QPointF & value ) |
void | setTargetObject ( QObject * value ) |
Qt::GestureState | state () const |
QObject * | targetObject () const |
void | unsetHotSpot () |
QGesture ( QGesturePrivate & dd, Qt::GestureType type, QObject * parent ) |
The QGesture class represents a gesture, containing all properties that describe a gesture.
The widget receives a QGestureEvent with a list of QGesture objects that represent gestures that are occuring on it. The class has a list of properties that can be queried by the user to get some gesture-specific arguments (i.e. position of the tap in the DoubleTap gesture).
When creating custom gesture recognizers, they might add new properties to the gesture object, or custom gesture developers might subclass the QGesture objects to provide some extended information.
See also QGestureEvent and QGestureRecognizer.
Access functions:
Qt::GestureType | gestureType () const |
Access functions:
bool | hasHotSpot () const |
Access functions:
QPointF | hotSpot () const |
void | setHotSpot ( const QPointF & value ) |
void | unsetHotSpot () |
Access functions:
Qt::GestureState | state () const |
Access functions:
QObject * | targetObject () const |
void | setTargetObject ( QObject * value ) |
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.0 |