The QGeoPlace class represents basic information about a place. More...
#include <QGeoPlace>
Inherited by: QLandmark.
This class was introduced in Qt Mobility 1.1.
QGeoPlace () | |
QGeoPlace ( const QGeoPlace & other ) | |
virtual | ~QGeoPlace () |
QGeoAddress | address () const |
QGeoCoordinate | coordinate () const |
bool | isLandmark () const |
void | setAddress ( const QGeoAddress & address ) |
void | setCoordinate ( const QGeoCoordinate & coordinate ) |
void | setViewport ( const QGeoBoundingBox & viewport ) |
QGeoBoundingBox | viewport () const |
bool | operator!= ( const QGeoPlace & other ) const |
QGeoPlace & | operator= ( const QGeoPlace & other ) |
bool | operator== ( const QGeoPlace & other ) const |
The QGeoPlace class represents basic information about a place.
A QGeoPlace contains a coordinate and the corresponding address, along with an optional bounding box describing the minimum viewport necessary to display the entirety of the place.
A QGeoPlace may contain an QLandmark instance. The isLandmark() function can be used to determine if this is the case, and the QLandmark(const QGeoPlace &place) constructor can be used to restore access to the landmark data.
For example:
QGeoPlace p; QLandmark l; ... if (p.isLandmark()) l = QLandmark(p)
Constructs an empty place object.
Constructs a copy of other.
This function was introduced in Qt Mobility 1.1.
Destroys this place.
Returns the address of this place.
This function was introduced in Qt Mobility 1.1.
See also setAddress().
Returns the coordinate that this place is located at.
This function was introduced in Qt Mobility 1.1.
See also setCoordinate().
This function returns whether this QGeoPlace instance contain all of the information required to construct a QLandmark instance.
If so, the QLandmark(const QGeoPlace &place) constructor can be used to restore access to the landmark data.
This function was introduced in Qt Mobility 1.1.
Sets the address of this place.
This function was introduced in Qt Mobility 1.1.
See also address().
Sets the coordinate that this place is located at.
This function was introduced in Qt Mobility 1.1.
See also coordinate().
Sets the viewport associated with this place to viewport.
The viewport is a suggestion for a size and position of a map window which aims to view this palce.
This function was introduced in Qt Mobility 1.1.
See also viewport().
Returns the viewport associated with this place.
The viewport is a suggestion for a size and position of a map window which aims to view this palce.
This function was introduced in Qt Mobility 1.1.
See also setViewport().
Returns true if other is not equal to this place, otherwise returns false.
This function was introduced in Qt Mobility 1.1.
Assigns other to this place and returns a reference to this place.
This function was introduced in Qt Mobility 1.1.
Returns true if other is equal to this place, otherwise returns false.
This function was introduced in Qt Mobility 1.1.
© 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.