QSensorGesture Class

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

Header: #include <QSensorGesture>
qmake: QT += sensors
Since: Qt 5.1
Inherits: QObject

This class was introduced in Qt 5.1.

Detailed Description

In addition to the QSensorGesture::detected() signal, Sensor Gesture Recognizers can have their own specific signals, and may be discovered through QSensorGesture::gestureSignals().

Note that QSensorGesture uses a custom meta-object in order to provide recognizer-specific signals. This means it is not possible to sub-class QSensorGesture and use Q_OBJECT. Also qobject_cast<QSensorGesture*>(ptr) will not work.

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

See also QSensorGestureRecognizer and QSensorGestureManager.