QSensorChangesInterface Class

The QSensorChangesInterface class is the pure virtual interface to sensor plugins. 更多...

頭: #include <QSensorChangesInterface>
qmake: QT += sensors
Since: Qt 5.1

該類在 Qt 5.1 引入。

公共函數

virtual void sensorsChanged () = 0

詳細描述

The QSensorChangesInterface class is implemented in sensor plugins to receive notification that registered sensor backends have changed.

另請參閱 Creating a sensor plugin .

成員函數文檔編製

[pure virtual] void QSensorChangesInterface:: sensorsChanged ()

This function is called when the registered backends have changed. Any backends that depend on the presence of other sensors should be registered or unregistered in here.

另請參閱 Creating a sensor plugin .