Home · All Classes · All Functions · Overviews

QGesture Class Reference
[
QtGui module]

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.


Properties


Public Functions

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 ()

Protected Functions

QGesture ( QGesturePrivate & dd, Qt::GestureType type, QObject * parent )

Additional Inherited Members


Detailed Description

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.


Property Documentation

gestureType : const Qt::GestureType

Access functions:

Qt::GestureType gestureType () const

hasHotSpot : const bool

Access functions:

bool hasHotSpot () const

hotSpot : QPointF

Access functions:

QPointF hotSpot () const
void setHotSpot ( const QPointF & value )
void unsetHotSpot ()

state : const Qt::GestureState

Access functions:

Qt::GestureState state () const

targetObject : QObject *

Access functions:

QObject * targetObject () const
void setTargetObject ( QObject * value )

Member Function Documentation

QGesture::QGesture ( Qt::GestureType type = Qt::CustomGesture, QObject * parent = 0 )

QGesture::QGesture ( QObject * parent )

QGesture::QGesture ( QGesturePrivate & dd, Qt::GestureType type, QObject * parent )   [protected]

QGesture::~QGesture ()


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.0