QGeoServiceProviderFactoryV2 Class

The QGeoServiceProviderFactoryV2 class is a factory class used as the plugin interface for services related to geographical information. 更多...

头: #include <QGeoServiceProviderFactoryV2>
qmake: QT += location
Since: Qt 5.11
继承: QGeoServiceProviderFactory

该类在 Qt 5.11 引入。

公共函数

virtual ~QGeoServiceProviderFactoryV2 ()
virtual QNavigationManagerEngine * createNavigationManagerEngine (const QVariantMap & 参数 , QGeoServiceProvider::Error * error , QString * errorString ) const

详细描述

Implementers must provide a unique combination of providerName() and providerVersion() per plugin.

The other functions should be overridden if the plugin supports the associated set of functionality.

成员函数文档编制

[虚拟] QGeoServiceProviderFactoryV2:: ~QGeoServiceProviderFactoryV2 ()

销毁此 QGeoServiceProviderFactoryV2 实例。

[虚拟] QNavigationManagerEngine *QGeoServiceProviderFactoryV2:: createNavigationManagerEngine (const QVariantMap & 参数 , QGeoServiceProvider::Error * error , QString * errorString ) const

Returns a new QNavigationManagerEngine instance, initialized with 参数 , which implements navigation functionality.

error is not nullptr, it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error 当故障时。

errorString is not nullptr, it should be set to a string describing any error which occurred.

The default implementation returns nullptr, which causes a QGeoServiceProvider::NotSupportedError in QGeoServiceProvider .