QPlaceMatchRequest Class

QPlaceMatchRequest 클래스는 한 관리자의 장소가 다른 관리자의 장소와 일치하는 것을 찾는 데 사용됩니다. 이 클래스는 요청 매개변수 집합을 나타냅니다. 더 보기...

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

공용 함수

QPlaceMatchRequest()
QPlaceMatchRequest(const 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)

정적 공용 멤버

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

상세 설명

현재 매니저에 대응/매칭되는 장소가 있을 수 있는 다른 매니저의 장소는 setPlaces() 또는 setResults()를 사용하여 할당됩니다. 매칭 기준을 결정하는 추가 매개변수 세트가 지정됩니다.

매칭을 위한 일반적인 키는 QPlaceMatchRequest::AlternativeId 이며, 값은 x_id_<제공자 이름> 형식의 대체 식별자 속성 유형입니다(예: x_id_here). 공급자 이름은 QGeoServiceProvider 인스턴스에 제공된 이름입니다.

일치 요청을 사용하는 방법에 대한 예는 관리자 간 장소 일치하기를 참조하세요.

QPlaceMatchReplyQPlaceManager도 참조하세요 .

멤버 함수 문서

QPlaceMatchRequest::QPlaceMatchRequest()

기본 생성자. 새 요청 객체를 생성합니다.

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

other 의 복사본을 생성합니다.

[noexcept] QPlaceMatchRequest::~QPlaceMatchRequest()

요청 객체를 삭제합니다.

void QPlaceMatchRequest::clear()

일치 요청을 지웁니다.

QVariantMap QPlaceMatchRequest::parameters() const

일치하는 장소에 대한 매개변수를 반환합니다.

setParameters()도 참조하세요 .

QList<QPlace> QPlaceMatchRequest::places() const

일치시킬 장소 목록을 반환합니다.

setPlaces()도 참조하세요 .

void QPlaceMatchRequest::setParameters(const QVariantMap &parameters)

일치하는 장소에 대해 parameters 을 설정합니다.

parameters()도 참조하세요 .

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

일치시킬 places 목록을 설정합니다.

places() 및 setResults()도 참조하세요 .

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

검색 세트를 사용하는 편의 기능 results 일치해야 하는 장소를 설정합니다.

setPlaces()도 참조하세요 .

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

이 검색 요청에 other 을 할당하고 이 일치 요청에 대한 참조를 반환합니다.

멤버 변수 문서

const QString QPlaceMatchRequest::AlternativeId

대체 장소 식별자를 통해 매칭을 수행하도록 지정하는 것이 핵심입니다.

관련 비회원

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

lhsrhs 과 같지 않으면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.

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

lhsrhs 과 같으면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.

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