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.

Currently the API is supported on Android, BlackBerry 10, iOS, href="https://sailfishos.org">SailFish and WinRT.

Information for Application Writers

Applications can access Qt Sensors using QML or C++.

QML TypesInformation about the Qt Sensors QML API
C++ ClassesInformation about the Qt Sensors C++ API
Qt Sensors C++ OverviewHigh-level information on how to use the C++ API.
Sensor Gestures C++ OverviewHigh-level information specific to sensor gestures
ExamplesExamples demonstrating the use of the Qt Sensors APIs

Information for Backend Implementors

BackendInformation about the Qt Sensors back end
Qt Sensors - Grue Sensor ExampleThe 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.

Porting GuideInformation about the steps needed to port applications to the Qt Sensors API.

Platform-specific Information

Compatibility MapCompatibility map of all supported platforms.
Generic BackendInformation about the generic sensor backend.
Sensorfw BackendInformation about the Sensorfw sensor backend.