The QGeoLocation class represents basic information about a location. More...
Header: | #include <QGeoLocation> |
qmake: | QT += positioning |
Since: | Qt 5.2 |
This class was introduced in Qt 5.2.
QGeoLocation(const QGeoLocation &other) | |
QGeoLocation() | |
QGeoLocation & | operator=(const QGeoLocation &other) |
~QGeoLocation() | |
QGeoAddress | address() const |
QGeoRectangle | boundingBox() const |
QGeoCoordinate | coordinate() const |
QVariantMap | extendedAttributes() const |
bool | isEmpty() const |
void | setAddress(const QGeoAddress &address) |
void | setBoundingBox(const QGeoRectangle &boundingBox) |
void | setCoordinate(const QGeoCoordinate &coordinate) |
void | setExtendedAttributes(const QVariantMap &data) |
bool | operator!=(const QGeoLocation &other) const |
bool | operator==(const QGeoLocation &other) const |
A QGeoLocation consists of a coordinate and corresponding address, along with an optional bounding box which is the recommended region to be displayed when viewing the location.
Constructs a copy of other
Constructs an new location object.
Assigns other to this location and returns a reference to this location.
Destroys the location object.
Returns the address of the location.
See also setAddress().
Returns a bounding box which represents the recommended region to display when viewing this location.
For example, a building's location may have a region centered around the building, but the region is large enough to show it's immediate surrounding geographical context.
See also setBoundingBox().
Returns the coordinate of the location.
See also setCoordinate().
Returns the extended attributes associated to this location. Extended attributes are backend-dependent and can be location-dependent.
This function was introduced in Qt 5.13.
See also setExtendedAttributes().
Returns true if all fields of the location are 0; otherwise returns false.
Sets the address of the location.
See also address().
Sets the boundingBox of the location.
See also boundingBox().
Sets the coordinate of the location.
See also coordinate().
Sets the extended attributes of the location with the parameters specified in data.
This function was introduced in Qt 5.13.
See also extendedAttributes().
Returns true if this location is not equal to other, otherwise returns false.
Returns true if this location is equal to other, otherwise returns false.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qgeolocation.html