Auf dieser Seite

QPlaceMatchRequest Class

Die Klasse „QPlaceMatchRequest“ dient dazu, Orte aus einem Manager zu finden, die mit denen aus einem anderen Manager übereinstimmen. Sie repräsentiert eine Reihe von Anforderungsparametern. Mehr...

Header: #include <QPlaceMatchRequest>
qmake: QT += location

Öffentliche Funktionen

QPlaceMatchRequest()
QPlaceMatchRequest(const QPlaceMatchRequest &other)
QPlaceMatchRequest(QPlaceMatchRequest &&other)
~QPlaceMatchRequest()
void clear()
QVariantMap parameters() const
QList<QPlace> places() const
void setParameters(const QVariantMap &parameters)
void setPlaces(const QList<QPlace> &places)
void setResults(const QList<QPlaceSearchResult> &results)
QPlaceMatchRequest &operator=(const QPlaceMatchRequest &other)

Statische öffentliche Mitglieder

const QString AlternativeId
bool operator!=(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)
bool operator==(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)

Ausführliche Beschreibung

Orte aus einem anderen Manager, die möglicherweise entsprechende/übereinstimmende Orte im aktuellen Manager haben, werden mithilfe von ` setPlaces()` oder ` setResults()` zugeordnet. Dabei wird eine Reihe weiterer Parameter angegeben, die die Kriterien für den Abgleich festlegen.

Der typische Schlüssel für den Abgleich ist ` QPlaceMatchRequest::AlternativeId`, der Wert ist ein alternatives Identifikationsattribut im Format `x_id_<Anbietername>`, zum Beispiel `x_id_here`. Der Anbietername ist der Name, der der Instanz ` QGeoServiceProvider ` übergeben wird.

Ein Beispiel für die Verwendung einer Abgleichanfrage finden Sie unter „Abgleich von Orten zwischen Managern “.

Siehe auch „ QPlaceMatchReply “ und „ QPlaceManager “.

Dokumentation zu den Member-Funktionen

QPlaceMatchRequest::QPlaceMatchRequest()

Standardkonstruktor. Erstellt ein neues Request-Objekt.

[noexcept] QPlaceMatchRequest::QPlaceMatchRequest(const QPlaceMatchRequest &other)

Erstellt eine Kopie von „ other “.

[constexpr noexcept default] QPlaceMatchRequest::QPlaceMatchRequest(QPlaceMatchRequest &&other)

Erstellt eine Instanz von ` QPlaceMatchRequest`.

[noexcept] QPlaceMatchRequest::~QPlaceMatchRequest()

Löscht das Anfrageobjekt.

void QPlaceMatchRequest::clear()

Löscht die Match-Anfrage.

QVariantMap QPlaceMatchRequest::parameters() const

Gibt die Parameter für übereinstimmende Orte zurück.

Siehe auch setParameters().

QList<QPlace> QPlaceMatchRequest::places() const

Gibt eine Liste der Stellen zurück, die abgeglichen werden sollen.

Siehe auch „ setPlaces()“.

void QPlaceMatchRequest::setParameters(const QVariantMap &parameters)

Legt die „ parameters “ für passende Orte fest.

Siehe auch parameters().

void QPlaceMatchRequest::setPlaces(const QList<QPlace> &places)

Legt eine Liste von „ places “ fest, die abgeglichen werden sollen.

Siehe auch „ places()“ und „ setResults()“.

void QPlaceMatchRequest::setResults(const QList<QPlaceSearchResult> &results)

Eine Komfortfunktion, die mithilfe einer Reihe von Such results en die Orte festlegt, die abgeglichen werden sollen.

Siehe auch ` setPlaces()`.

[noexcept] QPlaceMatchRequest &QPlaceMatchRequest::operator=(const QPlaceMatchRequest &other)

Weist dieser Suchanfrage die Variable „ other “ zu und gibt eine Referenz auf diese Suchanfrage zurück.

Dokumentation zu Member-Variablen

const QString QPlaceMatchRequest::AlternativeId

Der Schlüssel, um festzulegen, dass der Abgleich über einen alternativen Ortsbezeichner erfolgen soll.

Verwandte Nichtmitglieder

[noexcept] bool operator!=(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)

Gibt „true“ zurück, wenn „ lhs “ nicht gleich „ rhs “ ist; andernfalls wird „false“ zurückgegeben.

[noexcept] bool operator==(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)

Gibt „true“ zurück, wenn „ lhs “ gleich „ rhs “ ist, andernfalls „false“.

© 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.