内容表

上一话题

QSensorBackend

下一话题

QSensorChangesInterface

QSensorBackendFactory

QSensorBackendFactory class instantiates instances of QSensorBackend . 更多

Inheritance diagram of PySide2.QtSensors.QSensorBackendFactory

详细描述

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

class QSensorBackendFactory
PySide2.QtSensors.QSensorBackendFactory. createBackend ( sensor )
参数

sensor QSensor

返回类型

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.