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.
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.
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.
Called when the reading object changes. Please see QSensor::readingChanged() for information about this signal.
This documentation was introduced in Mobility 1.2.