QSensorBackendFactory class instantiates instances of
QSensorBackend . More…
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
This interface must be implemented in order to register a sensor backend.
- class PySide6.QtSensors.QSensorBackendFactory#
- abstract PySide6.QtSensors.QSensorBackendFactory.createBackend(sensor)#
- Return type:
Instantiate a backend. If the factory handles multiple identifiers it should check with the
sensor to see which one is requested.
If the factory cannot create a backend it should return 0.