IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Qt Sensors QML Types

Provides QML types for reading sensor data.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

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.

 
Sélectionnez
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.

  • Accelerometer: The Accelerometer element reports on linear acceleration along the X, Y and Z axes.

  • AmbientLightSensor: The AmbientLightSensor element repors on ambient lighting conditions.

  • AmbientTemperatureSensor: The AmbientTemperatureSensor element reports on the ambient temperature.

  • Compass: The Compass element reports on heading using magnetic north as a reference.

  • Gyroscope: The Gyroscope element reports on rotational acceleration around the X, Y and Z axes.

  • HumiditySensor: The HumiditySensor element reports on humidity.

  • LightSensor: The LightSensor element reports on light levels using LUX.

  • Magnetometer: The Magnetometer element reports on magnetic field strength along the Z, Y and Z axes.

  • OrientationSensor: The OrientationSensor element reports device orientation.

  • PressureSensor: The PressureSensor element reports on atmospheric pressure values.

  • ProximitySensor: The ProximitySensor element reports on object proximity.

  • RotationSensor: The RotationSensor element reports on device rotation around the X, Y and Z axes.

  • TiltSensor: The TiltSensor element reports tilt events along the X and Y axes.

QML Reading Types

The data from a sensor comes via a reading class.

  • AccelerometerReading: The AccelerometerReading element holds the most recent Accelerometer reading.

  • AmbientLightReading: The AmbientLightReading element holds the most AmbientLightSensor reading.

  • AmbientTemperatureReading: The AmbientTemperatureReading element holds the most recent temperature reading.

  • CompassReading: The CompassReading element holds the most recent Compass reading.

  • GyroscopeReading: The GyroscopeReading element holds the most recent Gyroscope reading.

  • HumidityReading: The HumidityReading element holds the most recent HumiditySensor reading.

  • LightReading: The LightReading element holds the most recent LightSensor reading.

  • MagnetometerReading: The MagnetometerReading element holds the most recent Magnetometer reading.

  • OrientationReading: The OrientationReading element holds the most recent OrientationSensor reading.

  • PressureReading: The PressureReading element holds the most recent PressureSensor reading.

  • ProximityReading: The ProximityReading element holds the most recent ProximitySensor reading.

  • RotationReading: The RotationReading element holds the most recent RotationSensor reading.

  • TiltReading: The TiltReading element holds the most recent TiltSensor reading.

All QML Types

 

Contents

  • Accelerometer: The Accelerometer element reports on linear acceleration along the X, Y and Z axes.

  • AccelerometerReading: The AccelerometerReading element holds the most recent Accelerometer reading.

  • AmbientLightReading: The AmbientLightReading element holds the most AmbientLightSensor reading.

  • AmbientLightSensor: The AmbientLightSensor element repors on ambient lighting conditions.

  • AmbientTemperatureReading: The AmbientTemperatureReading element holds the most recent temperature reading.

  • AmbientTemperatureSensor: The AmbientTemperatureSensor element reports on the ambient temperature.

  • Compass: The Compass element reports on heading using magnetic north as a reference.

  • CompassReading: The CompassReading element holds the most recent Compass reading.

  • Gyroscope: The Gyroscope element reports on rotational acceleration around the X, Y and Z axes.

  • GyroscopeReading: The GyroscopeReading element holds the most recent Gyroscope reading.

  • HumidityReading: The HumidityReading element holds the most recent HumiditySensor reading.

  • HumiditySensor: The HumiditySensor element reports on humidity.

  • LightReading: The LightReading element holds the most recent LightSensor reading.

  • LightSensor: The LightSensor element reports on light levels using LUX.

  • Magnetometer: The Magnetometer element reports on magnetic field strength along the Z, Y and Z axes.

  • MagnetometerReading: The MagnetometerReading element holds the most recent Magnetometer reading.

  • OrientationReading: The OrientationReading element holds the most recent OrientationSensor reading.

  • OrientationSensor: The OrientationSensor element reports device orientation.

  • PressureReading: The PressureReading element holds the most recent PressureSensor reading.

  • PressureSensor: The PressureSensor element reports on atmospheric pressure values.

  • ProximityReading: The ProximityReading element holds the most recent ProximitySensor reading.

  • ProximitySensor: The ProximitySensor element reports on object proximity.

  • QmlSensors: The QmlSensors singleton provides the module API.

  • RotationReading: The RotationReading element holds the most recent RotationSensor reading.

  • RotationSensor: The RotationSensor element reports on device rotation around the X, Y and Z axes.

  • Sensor: The Sensor element serves as a base type for sensors.

  • SensorReading: The SensorReading element serves as a base type for sensor readings.

  • TiltReading: The TiltReading element holds the most recent TiltSensor reading.

  • TiltSensor: The TiltSensor element reports tilt events along the X and Y axes.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+