Qt Mobility Reference Documentation

QGeoMappingManager Class Reference

The QGeoMappingManager class provides support for displaying and interacting with maps. More...

 #include <QGeoMappingManager>

Inherits QObject.


Public Functions

~QGeoMappingManager ()
QGeoMapData * createMapData ()
QLocale locale () const
QString managerName () const
int managerVersion () const
qreal maximumZoomLevel () const
qreal minimumZoomLevel () const
void setLocale ( const QLocale & locale )
QList<QGraphicsGeoMap::ConnectivityMode> supportedConnectivityModes () const
QList<QGraphicsGeoMap::MapType> supportedMapTypes () const
  • 29 public functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QGeoMappingManager class provides support for displaying and interacting with maps.

A QGeoMappingManager instance can create QGeoMapData instances with createMapData(). The QGeoMapData instances can be used to contain and manage information concerning what a particular QGraphicsGeoMap is viewing.

The functions in this class will typically not be used by clients of this API, as the most common uses will only need to obtain a QGeoMappingManager instance and associate it with a QGraphicsGeoMap instance:

 QGeoServiceProvider serviceProvider("nokia");
 QGeoMappingManager *manager = serviceProvider.mappingManager();
 QGraphicsGeoMap *geoMap = new QGraphicsGeoMap(manager);

This could have been simplified by having the plugin return a QGraphicsGeoMap instance instead, but this approach allows users to subclass QGraphicsGeoMap in order to override the standard event handlers and implement custom map behaviours.


Member Function Documentation

QGeoMappingManager::~QGeoMappingManager ()

Destroys this mapping manager.

QGeoMapData * QGeoMappingManager::createMapData ()

Returns a new QGeoMapData instance which will be managed by this manager.

QLocale QGeoMappingManager::locale () const

Returns the locale used to hint to this mapping manager about what language to use for map labels.

See also setLocale().

QString QGeoMappingManager::managerName () const

Returns the name of the engine which implements the behaviour of this mapping manager.

The combination of managerName() and managerVersion() should be unique amongst the plugin implementations.

int QGeoMappingManager::managerVersion () const

Returns the version of the engine which implements the behaviour of this mapping manager.

The combination of managerName() and managerVersion() should be unique amongst the plugin implementations.

qreal QGeoMappingManager::maximumZoomLevel () const

Returns the maximum zoom level supported by this manager.

Larger values of the zoom level correspond to more detailed views of the map.

qreal QGeoMappingManager::minimumZoomLevel () const

Returns the minimum zoom level supported by this manager.

Larger values of the zoom level correspond to more detailed views of the map.

void QGeoMappingManager::setLocale ( const QLocale & locale )

Sets the locale to be used by the this manager to locale.

If this mapping manager supports returning map labels in different languages, they will be returned in the language of locale.

The locale used defaults to the system locale if this is not set.

See also locale().

QList<QGraphicsGeoMap::ConnectivityMode> QGeoMappingManager::supportedConnectivityModes () const

Returns a list of the connectivity modes supported by this manager.

QList<QGraphicsGeoMap::MapType> QGeoMappingManager::supportedMapTypes () const

Returns a list of the map types supported by this manager.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.