Qt Sensors QML Types
QML Module API
If the module is imported into a namespace, some additional methods become available.
import QtSensors 5.11 // ... Component.onCompleted: { var types = QmlSensors.sensorTypes(); console.log(types.join(", ")); }
The documentation for the module API can be found in QmlSensors.
QML Sensor Types
These types represent specific types of sensors.
Note that most properties come from the abstract Sensor element.
Element reports on linear acceleration along the X, Y and Z axes | |
Element reports on altitude | |
Element repors on ambient lighting conditions | |
Element reports on the ambient temperature | |
Element reports on heading using magnetic north as a reference | |
Element reports the distance in cm from an object to the device | |
Element reports on rotational acceleration around the X, Y and Z axes | |
Element reports on whether a device is holstered | |
Element reports on humidity | |
Element reports on infra-red reflectance values | |
Element reports on whether a device is closed | |
Element reports on light levels using LUX | |
Element reports on magnetic field strength along the Z, Y and Z axes | |
Element reports device orientation | |
Element reports on atmospheric pressure values | |
Element reports on object proximity | |
Element reports on device rotation around the X, Y and Z axes | |
Element reports tap and double tap events along the X, Y and Z axes | |
Element reports tilt events along the X and Y axes |
QML Reading Types
The data from a sensor comes via a reading class.
Element holds the most recent Accelerometer reading | |
Element holds the most recent Altimeter reading | |
Element holds the most AmbientLightSensor reading | |
Element holds the most recent temperature reading | |
Element holds the most recent Compass reading | |
Element holds the most recent DistanceSensor reading | |
Element holds the most recent Gyroscope reading | |
Element holds the most recent HolsterSensor reading | |
Element holds the most recent HumiditySensor reading | |
Element holds the most recent IR proximity reading | |
Element holds the most recent LidSensor reading | |
Element holds the most recent LightSensor reading | |
Element holds the most recent Magnetometer reading | |
Element holds the most recent OrientationSensor reading | |
Element holds the most recent PressureSensor reading | |
Element holds the most recent ProximitySensor reading | |
Element holds the most recent RotationSensor reading | |
Element holds the most recent TapSensor reading | |
Element holds the most recent TiltSensor reading |
All QML Types
Element reports on linear acceleration along the X, Y and Z axes | |
Element holds the most recent Accelerometer reading | |
Element reports on altitude | |
Element holds the most recent Altimeter reading | |
Element holds the most AmbientLightSensor reading | |
Element repors on ambient lighting conditions | |
Element holds the most recent temperature reading | |
Element reports on the ambient temperature | |
Element reports on heading using magnetic north as a reference | |
Element holds the most recent Compass reading | |
Element holds the most recent DistanceSensor reading | |
Element reports the distance in cm from an object to the device | |
Element reports on rotational acceleration around the X, Y and Z axes | |
Element holds the most recent Gyroscope reading | |
Element holds the most recent HolsterSensor reading | |
Element reports on whether a device is holstered | |
Element holds the most recent HumiditySensor reading | |
Element reports on humidity | |
Element holds the most recent IR proximity reading | |
Element reports on infra-red reflectance values | |
Element holds the most recent LidSensor reading | |
Element reports on whether a device is closed | |
Element holds the most recent LightSensor reading | |
Element reports on light levels using LUX | |
Element reports on magnetic field strength along the Z, Y and Z axes | |
Element holds the most recent Magnetometer reading | |
Element holds the most recent OrientationSensor reading | |
Element reports device orientation | |
Element holds the most recent PressureSensor reading | |
Element reports on atmospheric pressure values | |
Element holds the most recent ProximitySensor reading | |
Element reports on object proximity | |
Singleton provides the module API | |
Element holds the most recent RotationSensor reading | |
Element reports on device rotation around the X, Y and Z axes | |
Element serves as a base type for sensors | |
Provides notifications when sensor-based gestures are detected | |
Element serves as a base type for sensor readings | |
Element holds the most recent TapSensor reading | |
Element reports tap and double tap events along the X, Y and Z axes | |
Element holds the most recent TiltSensor reading | |
Element reports tilt events along the X and Y axes |
© 2021 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.