QGeoServiceProviderFactoryclass is a factory class used as the plugin interface for services related to geographical information. 更多 …
继承者: QGeoServiceProviderFactoryV2
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.
QGeoServiceProviderFactory
¶
PySide2.QtLocation.QGeoServiceProviderFactory.
createGeocodingManagerEngine
(
参数
,
error
,
errorString
)
¶
参数 –
error
–
Error
errorString – unicode
返回新
QGeoCodingManagerEngine
instance, initialized with
参数
, which implements the location geocoding functionality.
若
error
is not 0 it should be set to
NoError
on success or an appropriate
Error
当失败时。
若
errorString
is not 0 it should be set to a string describing any error which occurred.
The default implementation returns 0, which causes a
NotSupportedError
in
QGeoServiceProvider
.
PySide2.QtLocation.QGeoServiceProviderFactory.
createPlaceManagerEngine
(
参数
,
error
,
errorString
)
¶
参数 –
error
–
Error
errorString – unicode
返回新
QPlaceManagerEngine
instance, initialized with
参数
, which implements the place searching functionality.
若
error
is not 0 it should be set to
NoError
on success or an appropriate
Error
当失败时。
若
errorString
is not 0 it should be set to a string describing any error which occurred.
The default implementation returns 0, which causes a
NotSupportedError
in
QGeoServiceProvider
.
PySide2.QtLocation.QGeoServiceProviderFactory.
createRoutingManagerEngine
(
参数
,
error
,
errorString
)
¶
参数 –
error
–
Error
errorString – unicode
返回新
QGeoRoutingManagerEngine
instance, initialized with
参数
, which implements routing functionality.
若
error
is not 0 it should be set to
NoError
on success or an appropriate
Error
当失败时。
若
errorString
is not 0 it should be set to a string describing any error which occurred.
The default implementation returns 0, which causes a
NotSupportedError
in
QGeoServiceProvider
.