MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QML Sensor Element

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

Inherited by Accelerometer, AmbientLightSensor, Compass, Gyroscope, LightSensor, Magnetometer, OrientationSensor, ProximitySensor, RotationSensor, and TapSensor.

Sensor instantiates the C++ class QSensor

This element was introduced in Mobility 1.2.

Properties

Signals

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.


Signal 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.