The QGeoPositionInfo class contains information gathered on a global position, direction and velocity at a particular point in time.
Public Types Index
Public Functions Index
|QGeoPositionInfo (const QGeoCoordinate &coordinate, const QDateTime &updateTime)|
|QGeoPositionInfo (const QGeoPositionInfo &other)|
|QGeoPositionInfo &||operator= (const QGeoPositionInfo &other)|
|bool||operator== (const QGeoPositionInfo &other) const|
|bool||operator!= (const QGeoPositionInfo &other) const|
|bool||isValid () const|
|void||setTimestamp (const QDateTime ×tamp)|
|QDateTime||timestamp () const|
|void||setCoordinate (const QGeoCoordinate &coordinate)|
|QGeoCoordinate||coordinate () const|
|void||setAttribute (Attribute attribute, qreal value)|
|qreal||attribute (Attribute attribute) const|
|void||removeAttribute (Attribute attribute)|
|bool||hasAttribute (Attribute attribute) const|
Defines the attributes for positional information.
Direction The bearing to true north from the direction of travel, in degrees. GroundSpeed The ground speed, in meters/sec. VerticalSpeed The vertical speed, in meters/sec. MagneticVariation The angle between the horizontal component of the magnetic field and true north, in degrees. Also known as magnetic declination. A positive value indicates a clockwise direction from true north and a negative value indicates a counter-clockwise direction. HorizontalAccuracy The accuracy of the provided latitude-longitude value, in meters. VerticalAccuracy The accuracy of the provided altitude value, in meters.
Creates a QGeoPositionInfo for the given coordinate and timestamp.
Creates a QGeoPositionInfo with the values of other.
Returns true if all of this object's values are the same as those of other.
Returns true if any of this object's values are not the same as those of other.
Sets the date and time at which this position was reported to timestamp.
The timestamp must be in UTC time.
Returns the date and time at which this position was reported, in UTC time.
Sets the coordinate for this position to coordinate.
Returns the coordinate for this position.
Returns an invalid coordinate if no coordinate has been set.
Sets the value for attribute to value.
Returns the value of the specified attribute as a qreal value.
Removes the specified attribute and its value.
Returns true if the specified attribute is present for this QGeoPositionInfo object.
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.