Auf dieser Seite

QGeoPositionInfoSourceFactory Class

Die Klasse „QGeoPositionInfoSourceFactory“ ist eine Factory-Klasse, die als Plugin-Schnittstelle für externe Anbieter von Positionsdaten dient. Mehr...

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

Öffentliche Funktionen

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

Ausführliche Beschreibung

Jede Factory-Methode nimmt ein Parameter-Argument entgegen, mit dem die erstellte Quelle konfiguriert werden kann.

Dokumentation der Member-Funktionen

[virtual noexcept] QGeoPositionInfoSourceFactory::~QGeoPositionInfoSourceFactory()

Löscht die Factory für Positionsdatenquellen.

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

Gibt eine neue ` QGeoAreaMonitorSource ` zurück, die diesem Plugin zugeordnet ist, deren übergeordnete Instanz ` parent` ist und die ` parameters ` als Konfigurationsparameter verwendet. Kann auch den Wert 0 zurückgeben; in diesem Fall verwendet der Plugin-Loader die Factory mit der nächsthöheren Priorität.

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

Gibt eine neue Instanz von ` QGeoPositionInfoSource ` zurück, die diesem Plugin zugeordnet ist, deren übergeordnete Instanz ` parent` ist und die ` parameters ` als Konfigurationsparameter verwendet. Kann auch den Wert 0 zurückgeben; in diesem Fall verwendet der Plugin-Loader die Factory mit der nächsthöheren Priorität.

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

Gibt eine neue Instanz von ` QGeoSatelliteInfoSource ` zurück, die diesem Plugin zugeordnet ist, deren übergeordnete Instanz ` parent` ist und die ` parameters ` als Konfigurationsparameter verwendet. Kann auch den Wert 0 zurückgeben; in diesem Fall verwendet der Plugin-Loader die Factory mit der nächsthöheren Priorität.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.