The QSensorGesturePluginInterface class is the pure virtual interface to sensor gesture plugins. 更多...
头: | #include <QSensorGesturePluginInterface> |
qmake: | QT += sensors |
Since: | Qt 5.1 |
该类在 Qt 5.1 引入。
QSensorGesturePluginInterface () | |
virtual | ~QSensorGesturePluginInterface () |
virtual QList<QSensorGestureRecognizer *> | createRecognizers () = 0 |
virtual QString | name () const = 0 |
virtual QStringList | supportedIds () const = 0 |
The QSensorGesturePluginInterface class is implemented in sensor gesture plugins to register sensor gesture recognizers with QSensorGestureManager .
另请参阅 QtSensorGestures 插件 .
Construct the QSensorGesturePluginInterface.
[虚拟]
QSensorGesturePluginInterface::
~QSensorGesturePluginInterface
()
Destroy the QSensorGesturePluginInterface .
[pure virtual]
QList
<
QSensorGestureRecognizer
*> QSensorGesturePluginInterface::
createRecognizers
()
Called by the manager to create the recognizers. Plugins should initialize and register their recognizers using QSensorGestureManager::registerSensorGestureRecognizer () here.
另请参阅 QSensorGestureManager .
[pure virtual]
QString
QSensorGesturePluginInterface::
name
() const
Returns this plugins name.
[pure virtual]
QStringList
QSensorGesturePluginInterface::
supportedIds
() const
Returns a list of the recognizer Id's that this plugin supports.