Qt Sensors

The Qt Sensors API provides access to sensor hardware via QML and C++ interfaces. The Qt Sensors API also provides a motion gesture recognition API for devices.

目前,API 支持在 Android , iOS , SailFish and WinRT .

Information for Application Writers

应用程序可以使用 QML 或 C++ 访问 Qt Sensors。

QML 类型 有关 Qt 传感器 QML API 的信息
C++ 类 Information about the Qt Sensors C++ API
Qt Sensors C++ 概述 High-level information on how to use the C++ API.
Sensor Gestures C++ Overview High-level information specific to sensor gestures
范例 Examples demonstrating the use of the Qt Sensors APIs

Information for Backend Implementors

Backend Information about the Qt Sensors back end
Qt Sensors - Grue Sensor Example The Qt Sensors - Grue Sensor Example demonstrates creation of a sensor backend

Compatibility with QtMobility Sensors API

Qt Sensors 5.0 (the initial release) is generally expected to be source compatible with QtMobility Sensors 1.2.

移植指南 Information about the steps needed to port applications to the Qt Sensors API.


Compatibility Map Compatibility map of all supported platforms.
Generic Backend Information about the generic sensor backend.
Sensorfw Backend Information about the Sensorfw sensor backend.