Qt Sensors QML Types
QML Sensors Module API
QmlSensors is a module API that provides information about currently available sensors types, identifiers, and the default sensors.
import QtSensors // ... 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 repors on ambient lighting conditions | |
Element reports on the ambient temperature | |
Element reports on heading using magnetic north as a reference | |
Element reports on rotational acceleration around the X, Y and Z axes | |
Element reports on humidity | |
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 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 AmbientLightSensor reading | |
Element holds the most recent temperature reading | |
Element holds the most recent Compass reading | |
Element holds the most recent Gyroscope reading | |
Element holds the most recent HumiditySensor 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 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 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 reports on rotational acceleration around the X, Y and Z axes | |
Element holds the most recent Gyroscope reading | |
Element holds the most recent HumiditySensor reading | |
Element reports on humidity | |
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 | |
Element serves as a base type for sensor readings | |
Element holds the most recent TiltSensor reading | |
Element reports tilt events along the X and Y axes |
© 2024 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.