QGeoMappingManager Class

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

Header: #include <QGeoMappingManager>
Inherits: QObject

Public Functions

virtual ~QGeoMappingManager()
QGeoMap *createMap(QObject *parent)
bool isInitialized() const
QLocale locale() const
QString managerName() const
int managerVersion() const
void setLocale(const QLocale &locale)

Protected Functions

QGeoMappingManager(QGeoMappingManagerEngine *engine, QObject *parent = nullptr)

Detailed Description

\inmoduleQtLocation \ingroup QtLocation-maps \since 5.6 \internal

Member Function Documentation

[protected] QGeoMappingManager::QGeoMappingManager(QGeoMappingManagerEngine *engine, QObject *parent = nullptr)

Constructs a new manager with the specified parent and with the implementation provided by engine.

This constructor is used internally by QGeoServiceProviderFactory. Regular users should acquire instances of QGeoMappingManager with QGeoServiceProvider::mappingManager()

[virtual noexcept] QGeoMappingManager::~QGeoMappingManager()

Destroys this mapping manager.

QGeoMap *QGeoMappingManager::createMap(QObject *parent)

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

bool QGeoMappingManager::isInitialized() const

Return whether the manager has been initialized (will be done automatically but may take some time).

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.

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().