QGeoPlace

Since: 1.1

#include <QtLocationSubset/QGeoPlace>

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.


Overview

Protected Attributes Index

QSharedDataPointer< QGeoPlacePrivate >d_ptr

Public Functions Index

QGeoPlace ()
QGeoPlace (const QGeoPlace &other)
virtual ~QGeoPlace ()
QGeoAddressaddress () const
QGeoCoordinatecoordinate () const
booloperator!= (const QGeoPlace &other) const
QGeoPlace &operator= (const QGeoPlace &other)
booloperator== (const QGeoPlace &other) const
voidsetAddress (const QGeoAddress &address)
voidsetCoordinate (const QGeoCoordinate &coordinate)
voidsetViewport (const QGeoBoundingBox &viewport)
QGeoBoundingBoxviewport () const

Protected Functions Index

QGeoPlace (QGeoPlacePrivate *dd)

Protected Attributes

QSharedDataPointer< QGeoPlacePrivate > d_ptr ()

Public Functions

QGeoPlace ()

Constructs an empty place object.

QGeoPlace (

Constructs a copy of other.

virtual~QGeoPlace ()

Destructor.

QGeoAddress address ()

Returns the address of this place.

QGeoCoordinate coordinate ()

Returns the coordinate that this place is located at.

bool operator!= (

Returns true if other is not equal to this place, otherwise returns false.

QGeoPlace & operator= (

Assigns other to this place and returns a reference to this place.

bool operator== (

Returns true if other is equal to this place, otherwise returns false.

void setAddress (

Sets the address of this place.

void setCoordinate (

Sets the coordinate that this place is located at.

void setViewport (

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.

QGeoBoundingBox 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 place.

Protected Functions

QGeoPlace (
  • QGeoPlacePrivate *dd)

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus