PySide6.QtSensors.QSensorPluginInterface

class QSensorPluginInterface

The QSensorPluginInterface class is the pure virtual interface to sensor plugins. More

Synopsis

Virtual methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

The QSensorPluginInterface class is implemented in sensor plugins to register sensor backends with QSensorManager .

abstract 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.