Qt Sensors Backend¶
Describes how to use the Qt Sensors backend.
The Qt Sensors backend connects the Qt Sensors API to the platform services or hardware sensors.
Overview¶
QSensor
instances talk to a backend object. Backends are usually supplied with the Qt Sensors library for a specific device, although third-party backends may be used as well. A backend can talk directly to hardware, or it can talk to a system service. In some instances it can even talk to another sensor. An example of this is the orientation sensor backend that talks to an accelerometer to determine the device orientation.
Backend Classes¶
If you are making sensors available through the Sensors API, these are the classes to use. +————————————————–+———————————————————————————-+ |:class:`PySide2.QtSensors.QSensorBackend` |The QSensorBackend class is a sensor implementation. | +--------------------------------------------------+----------------------------------------------------------------------------------+ |:class:`PySide2.QtSensors.QSensorManager` |The QSensorManager class handles registration and creation of sensor backends. | +--------------------------------------------------+----------------------------------------------------------------------------------+ |:class:`PySide2.QtSensors.QSensorBackendFactory` |The QSensorBackendFactory class instantiates instances of QSensorBackend. | +--------------------------------------------------+----------------------------------------------------------------------------------+ |:class:`PySide2.QtSensors.QSensorPluginInterface` |The QSensorPluginInterface class is the pure virtual interface to sensor plugins. | +--------------------------------------------------+----------------------------------------------------------------------------------+ |:class:`PySide2.QtSensors.QSensorChangesInterface`|The QSensorChangesInterface class is the pure virtual interface to sensor plugins.| +————————————————–+———————————————————————————-+
Backend Topics¶
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.