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.
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.
Called when the reading object changes. Please see QSensor::readingChanged() for information about this signal.
This documentation was introduced in Mobility 1.2.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.