Detailed Description
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)
Member Function Documentation
QGeoPlace::QGeoPlace ()
Constructs an empty place object.
QGeoPlace::QGeoPlace ( const QGeoPlace & other )
Constructs a copy of other.
QGeoPlace::~QGeoPlace () [virtual]
Destroys this place.
QGeoAddress QGeoPlace::address () const
Returns the address of this place.
See also setAddress().
QGeoCoordinate QGeoPlace::coordinate () const
Returns the coordinate that this place is located at.
See also setCoordinate().
bool QGeoPlace::isLandmark () const
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.
void QGeoPlace::setAddress ( const QGeoAddress & address )
Sets the address of this place.
See also address().
void QGeoPlace::setCoordinate ( const QGeoCoordinate & coordinate )
Sets the coordinate that this place is located at.
See also coordinate().
void QGeoPlace::setViewport ( const QGeoBoundingBox & viewport )
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.
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.
See also setViewport().
bool QGeoPlace::operator!= ( const QGeoPlace & other ) const
Returns true if other is not equal to this place, otherwise returns false.
QGeoPlace & QGeoPlace::operator= ( const QGeoPlace & other )
Assigns other to this place and returns a reference to this place.
bool QGeoPlace::operator== ( const QGeoPlace & other ) const
Returns true if other is equal to this place, otherwise returns false.