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)|
|qreal||attribute (Attribute attribute) const|
|QGeoCoordinate||coordinate () const|
|bool||hasAttribute (Attribute attribute) const|
|bool||isValid () const|
|bool||operator!= (const QGeoPositionInfo &other) const|
|QGeoPositionInfo &||operator= (const QGeoPositionInfo &other)|
|bool||operator== (const QGeoPositionInfo &other) const|
|void||removeAttribute (Attribute attribute)|
|void||setAttribute (Attribute attribute, qreal value)|
|void||setCoordinate (const QGeoCoordinate &coordinate)|
|void||setTimestamp (const QDateTime ×tamp)|
|QDateTime||timestamp () 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 the value of the specified attribute as a qreal value.
Returns the coordinate for this position.
Returns an invalid coordinate if no coordinate has been set.
Returns true if the specified attribute is present for this QGeoPositionInfo object.
Returns true if any of this object's values are not the same as those of other.
Returns true if all of this object's values are the same as those of other.
Removes the specified attribute and its value.
Sets the value for attribute to value.
Sets the coordinate for this position to coordinate.
Sets the date and time at which this position was reported to timestamp.
The timestamp must be in UTC time.
© 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.