Qt Sensors 后端

Qt Sensors 后端将Qt Sensors API 与平台服务或硬件传感器连接起来。

概述

QSensor 通用后台对象是与后台对象对话的实例。后端通常与 库一起提供给特定设备,但也可以使用第三方后端。后端可以直接与硬件对话,也可以与系统服务对话。在某些情况下,它甚至可以与另一个传感器对话。方向传感器后端就是一个例子,它与加速度计对话以确定设备方向。Qt Sensors

后端类

如果您要通过传感器应用程序接口(Sensors API)提供传感器,则需要使用这些类。

QSensorBackend

传感器实现

QSensorBackendFactory

实例化 QSensorBackend

QSensorChangesInterface

传感器插件的纯虚拟接口

QSensorManager

处理传感器后端的注册和创建

QSensorPluginInterface

传感器插件的纯虚拟接口

后端主题

© 2025 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.