In questa pagina

QPlaceMatchReply Class

La classe `QPlaceMatchReply` gestisce un'operazione di abbinamento dei luoghi avviata da un'istanza di ` QPlaceManager`. Altro...

Header: #include <QPlaceMatchReply>
qmake: QT += location
Inherits: QPlaceReply

Funzioni pubbliche

QPlaceMatchReply(QObject *parent = nullptr)
virtual ~QPlaceMatchReply()
QList<QPlace> places() const
QPlaceMatchRequest request() const

Funzioni pubbliche reimplementate

virtual QPlaceReply::Type type() const override

Funzioni protette

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

Descrizione dettagliata

Se l'operazione va a buon fine, il numero di posizioni nella risposta corrisponde a quello della richiesta. Se una determinata posizione nella richiesta non viene trovata, nella risposta viene utilizzata una posizione costruita per impostazione predefinita come segnaposto. In questo modo, esiste sempre una relazione uno a uno tra le posizioni di input nella richiesta e quelle di output nella risposta.

Se l’operazione non va a buon fine, il numero di posizioni è sempre pari a zero.

Vedere " Corrispondenza delle posizioni tra gestori " per un esempio su come utilizzare una risposta di corrispondenza.

Vedi anche QPlaceMatchRequest e QPlaceManager.

Documentazione sulle funzioni membro

[explicit] QPlaceMatchReply::QPlaceMatchReply(QObject *parent = nullptr)

Crea una risposta di corrispondenza con un dato parent.

[virtual noexcept] QPlaceMatchReply::~QPlaceMatchReply()

Elimina la risposta alla partita.

QList<QPlace> QPlaceMatchReply::places() const

Restituisce un elenco dei luoghi corrispondenti;

Vedi anche setPlaces().

QPlaceMatchRequest QPlaceMatchReply::request() const

Restituisce la richiesta di corrispondenza utilizzata per generare questa risposta.

Vedi anche setRequest().

[protected] void QPlaceMatchReply::setPlaces(const QList<QPlace> &places)

Imposta l'elenco dei risultati corrispondenti a places.

Vedi anche places().

[protected] void QPlaceMatchReply::setRequest(const QPlaceMatchRequest &request)

Imposta l'request e di corrispondenza utilizzata per generare questa risposta.

Vedi anche request().

[override virtual] QPlaceReply::Type QPlaceMatchReply::type() const

Reimplementa: ` QPlaceReply::type()` const.

Restituisce il tipo della risposta.

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