QSensorBackendFactory

The QSensorBackendFactory class instantiates instances of QSensorBackend . More

Inheritance diagram of PySide2.QtSensors.QSensorBackendFactory

Detailed Description

This interface must be implemented in order to register a sensor backend.

class PySide2.QtSensors.QSensorBackendFactory
PySide2.QtSensors.QSensorBackendFactory.createBackend(sensor)
Parameters:

sensorPySide2.QtSensors.QSensor

Return type:

PySide2.QtSensors.QSensorBackend

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.