|qmake:||QT += sensors|
|QSensorGesture(const QStringList &ids, QObject *parent = Q_NULLPTR)|
- 32 public functions inherited from QObject
- 2 signals inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 11 static public members inherited from QObject
- 9 protected functions inherited from QObject
The QSensorGesture class represents one or more sensor gesture recognizers.
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.
Member Function Documentation
QSensorGesture::QSensorGesture(const QStringList &ids, QObject *parent = Q_NULLPTR)
Constructs the sensor gesture, and initializes the ids list of recognizers, with parent parent
Destroy the QSensorGesture
[signal] void QSensorGesture::detected(QString gestureId)
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.
Returns whether this gesture is active or not.
Starts the gesture detection routines in the recognizer.
Stops the gesture detection routines.
QStringList QSensorGesture::validIds() const
Returns the gesture recognizer ids that were found.
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.