QSensorPluginInterfaceclass is the pure virtual interface to sensor plugins. 更多 …
QSensorPluginInterfaceclass is implemented in sensor plugins to register sensor backends withQSensorManager.
QSensorPluginInterface
¶
PySide2.QtSensors.QSensorPluginInterface.
registerSensors
(
)
¶
This function is called when the plugin is loaded. The plugin should register sensor backends by calling
registerBackend()
. Any backends that utilise other sensors should be registered in the QSensorPluginInterface::sensorsChanged() method instead.