QGeoPositionInfoSourceFactory Class

The QGeoPositionInfoSourceFactory class is a factory class used as the plugin interface for external providers of positioning data. 更多...

头: #include <QGeoPositionInfoSourceFactory>
CMake: find_package(Qt6 COMPONENTS Positioning REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Positioning)
qmake: QT += positioning
Since: Qt 5.2

公共函数

virtual ~QGeoPositionInfoSourceFactory ()
virtual QGeoAreaMonitorSource * areaMonitor (QObject * parent , const QVariantMap & 参数 ) = 0
virtual QGeoPositionInfoSource * positionInfoSource (QObject * parent , const QVariantMap & 参数 ) = 0
virtual QGeoSatelliteInfoSource * satelliteInfoSource (QObject * parent , const QVariantMap & 参数 ) = 0

详细描述

Each factory method takes a parameters argument, which allows to configure the created source.

成员函数文档编制

[虚拟] QGeoPositionInfoSourceFactory:: ~QGeoPositionInfoSourceFactory ()

Destroys the position info source factory.

[pure virtual] QGeoAreaMonitorSource *QGeoPositionInfoSourceFactory:: areaMonitor ( QObject * parent , const QVariantMap & 参数 )

返回新的 QGeoAreaMonitorSource associated with this plugin with parent parent , and using 参数 as configuration parameters. Can also return 0, in which case the plugin loader will use the factory with the next highest priority.

[pure virtual] QGeoPositionInfoSource *QGeoPositionInfoSourceFactory:: positionInfoSource ( QObject * parent , const QVariantMap & 参数 )

返回新的 QGeoPositionInfoSource associated with this plugin with parent parent , and using 参数 as configuration parameters. Can also return 0, in which case the plugin loader will use the factory with the next highest priority.

[pure virtual] QGeoSatelliteInfoSource *QGeoPositionInfoSourceFactory:: satelliteInfoSource ( QObject * parent , const QVariantMap & 参数 )

返回新的 QGeoSatelliteInfoSource associated with this plugin with parent parent , and using 参数 as configuration parameters. Can also return 0, in which case the plugin loader will use the factory with the next highest priority.