QtMobility Reference Documentation

QML Sensor Element

The Sensor element serves as a base type for sensors. More...

Inherited by Accelerometer, Altimeter, AmbientLightSensor, AmbientTemperatureSensor, Compass, Gyroscope, HolsterSensor, IRProximitySensor, LightSensor, Magnetometer, OrientationSensor, PressureSensor, ProximitySensor, RotationSensor, and TapSensor.

Sensor instantiates the C++ class QSensor

This element was introduced in Mobility 1.2.

Properties

Signal Handlers

Detailed Description

The Sensor element serves as a base type for sensors.

This element wraps the QSensor class. Please see the documentation for QSensor for details.

This element cannot be directly created. Please use one of the sub-classes instead.

See also Sensors QML Limitations.

Property Documentation

active : bool

Starts or stops the sensor. Please see QSensor::active for information about this property.

This property group was introduced in Mobility 1.2.


dataRate : int

Sets the rate at which data is returned by the sensor. Please see QSensor::dataRate for information about this property.

This property group was introduced in Mobility 1.2.


read-onlyreading : SensorReading

Holds the most recent sensor reading. Please see QSensor::reading for information about this property.

This property group was introduced in Mobility 1.2.


skipDuplicates : bool

Omitts readings with the same or very similar values.

This property group was introduced in Mobility 1.3.

See also QSensor::skipDuplicates.


Signal Handler Documentation

Sensor::onReadingChanged ()

Called when the reading object changes. Please see QSensor::readingChanged() for information about this signal.

This documentation was introduced in Mobility 1.2.


X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.