Compatibility Map
| Color | Explanation |
| The sensor is supported. | |
| The sensor is not supported. |
| Feature | Android | Linux | iOS | Windows | Generic |
| Accelerometer | |||||
| Ambient Light Sensor | |||||
| Ambient Temperature Sensor | |||||
| Compass | |||||
| Gyroscope | |||||
| Light Sensor | |||||
| Magnetometer | |||||
| Orientation Sensor | |||||
| Pressure Sensor | |||||
| Proximity Sensor | |||||
| Rotation Sensor | |||||
| Tilt Sensor |
In addition to the table above, each sensor type might support specific features. For example, a magnetometer might support returning geo values. See QSensor::isFeatureSupported() for additional details.
Platform specific notes
Windows
The Windows backend is supported in Qt installations that were built with MSVC.
Android
The sensors provided by the Android backend can be read without requesting any Android permission.
The only restriction concerns the sampling rate of the accelerometer, gyroscope, and magnetometer. Starting from Android 12 (API level 31), reading these sensors at a rate higher than 200 Hz requires the android.permission.HIGH_SAMPLING_RATE_SENSORS permission. This is a normal permission that is granted at install time without prompting the user. If the permission is not declared, the sampling rate is capped at 200 Hz.
Declare the permission for the application with qt_add_android_permission:
qt_add_android_permission(myapp
NAME android.permission.HIGH_SAMPLING_RATE_SENSORS
)Note: When using a hand-written AndroidManifest.xml, it must contain the <!-- %%INSERT_PERMISSIONS --> tag for the permission to be added. See Qt Permissions and Features.
© 2026 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.