The QSensorChangesInterface class is the pure virtual interface to sensor plugins. 更多...
头: | #include <QSensorChangesInterface> |
CMake: |
find_package(Qt6 COMPONENTS Sensors REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
Since: | 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 .