The QSensorGesture class represents one or more sensor gesture recognizers. More...
Header: | #include <QSensorGesture> |
qmake: | QT += sensors |
Since: | Qt 5.1 |
Inherits: | QObject |
QSensorGesture(const QStringList &ids, QObject *parent = Q_NULLPTR) | |
virtual | ~QSensorGesture() |
QStringList | gestureSignals() const |
QStringList | invalidIds() const |
bool | isActive() |
void | startDetection() |
void | stopDetection() |
QStringList | validIds() const |
void | detected(QString) |
The QSensorGesture class represents one or more sensor gesture recognizers.
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.
Constructs the sensor gesture, and initializes the ids list of recognizers, with parent parent
[virtual]
QSensorGesture::~QSensorGesture()Destroy the QSensorGesture
[signal]
void QSensorGesture::detected(QString)Signals when the gestureId gesture has been recognized.
Returns all the possible gestures signals that may be emitted.
Returns the gesture recognizer ids that were not found.
Returns whether this gesture is active or not.
Starts the gesture detection routines in the recognizer.
Stops the gesture detection routines.
Returns the gesture recognizer ids that were found.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: