More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QAltimeterReading
The QAltimeterReading class holds readings from the altimeter sensor.
The altitude is reported in meters relative to mean sea level.
On BlackBerry, the altimeter uses a combination of pressure and location to determine the altitude, as using pressure alone would yield to inaccurate results due to changes in air pressure caused by the weather. The location information is used to compensate for the weather. This requires that the user has enabled location services in the global settings.
Public Functions Index
Protected Functions Index
The altitude in meters relative to mean sea level.
the timestamp of the reading.
Sets the altitude to altitude.
Sets the timestamp of the reading.
Returns the value of the property at index.
Note that this function is slower than calling the data function directly.
Here is an example of getting a property via the different mechanisms available.
Accessing directly provides the best performance but requires compile-time knowledge of the data you are accessing.
QAccelerometerReading *reading = ...; qreal x = reading->x();
You can also access a property by name. To do this you must call QObject::property().
qreal x = reading->property("x").value<qreal>();
Finally, you can access values via numeric index.
qreal x = reading->value(0).value<qreal>();
(Only has inherited protected functions)
QScopedPointer< QSensorReadingPrivate > *
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.