QtMobility Reference Documentation

QSensorGesture Class Reference

The QSensorGesture class represents one or more sensor gesture recognizers. More...

 #include <QSensorGesture>

Inherits: QObject.

Public Functions

QSensorGesture ( const QStringList & ids, QObject * parent = 0 )
~QSensorGesture ()
QStringList gestureSignals () const
QStringList invalidIds () const
bool isActive ()
void startDetection ()
void stopDetection ()
QStringList validIds () const
  • 29 public functions inherited from QObject

Signals

void detected ( QString gestureId )

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QSensorGesture class represents one or more sensor gesture recognizers.

You may use QSensorGestureManager to obtain the systems known sensor gesture ids.

See also QSensorGestureRecognizer and QSensorGestureManager.

Member Function Documentation

QSensorGesture::QSensorGesture ( const QStringList & ids, QObject * parent = 0 )

Constructs the sensor gesture, and initializes the ids list of recognizers, with parent parent

QSensorGesture::~QSensorGesture ()

Destroy the QSensorGesture

void QSensorGesture::detected ( QString gestureId ) [signal]

Signals when the gestureId gesture has been recognized.

QStringList QSensorGesture::gestureSignals () const

Returns all the possible gestures signals that may be emitted.

QStringList QSensorGesture::invalidIds () const

Returns the gesture recognizer ids that were not found.

bool QSensorGesture::isActive ()

Returns whether this gesture is active or not.

void QSensorGesture::startDetection ()

Starts the gesture detection routines in the recognizer.

void QSensorGesture::stopDetection ()

Stops the gesture detection routines.

QStringList QSensorGesture::validIds () const

Returns the gesture recognizer ids that were found.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.