QPlaceMatchReply Class
QPlaceMatchReply 클래스는 QPlaceManager 인스턴스에 의해 시작된 위치 매칭 작업을 관리합니다. 더 보기...
| Header: | #include <QPlaceMatchReply> |
| qmake: | QT += location |
| Inherits: | QPlaceReply |
공개 함수
| QPlaceMatchReply(QObject *parent = nullptr) | |
| virtual | ~QPlaceMatchReply() |
| QList<QPlace> | places() const |
| QPlaceMatchRequest | request() const |
재구현된 공용 함수
| virtual QPlaceReply::Type | type() const override |
보호된 함수
| void | setPlaces(const QList<QPlace> &places) |
| void | setRequest(const QPlaceMatchRequest &request) |
상세 설명
작업이 성공하면, 응답의 플레이스 수는 요청의 플레이스 수와 일치합니다. 요청에서 특정 플레이스를 찾을 수 없는 경우, 기본 생성된 플레이스가 응답에서 자리 표시자로 사용됩니다. 이러한 방식으로, 요청의 입력 플레이스와 응답의 출력 플레이스 간에는 항상 일대일 관계가 유지됩니다.
작업이 성공하지 못하면 장소의 수는 항상 0입니다.
매치 응답을 사용하는 방법에 대한 예제는 관리자 간 위치 매칭을 참조하십시오.
QPlaceMatchRequest 및 QPlaceManager도 참조하십시오 .
멤버 함수 문서
[explicit] QPlaceMatchReply::QPlaceMatchReply(QObject *parent = nullptr)
지정된 ` parent`를 사용하여 매치 응답을 생성합니다.
[virtual noexcept] QPlaceMatchReply::~QPlaceMatchReply()
매치 응답을 삭제합니다.
QList<QPlace> QPlaceMatchReply::places() const
일치하는 장소 목록을 반환합니다.
setPlaces()도 참조하십시오 .
QPlaceMatchRequest QPlaceMatchReply::request() const
이 응답을 생성하는 데 사용된 매치 요청을 반환합니다.
setRequest()도 참조하십시오 .
[protected] void QPlaceMatchReply::setPlaces(const QList<QPlace> &places)
일치하는 places 목록을 설정합니다.
places()도 참조하십시오 .
[protected] void QPlaceMatchReply::setRequest(const QPlaceMatchRequest &request)
이 응답을 생성하는 데 사용된 일치 조건 request 을 설정합니다.
request()도 참조하십시오 .
[override virtual] QPlaceReply::Type QPlaceMatchReply::type() const
QPlaceReply::type() const를 재구현합니다.
응답의 유형을 반환합니다.
© 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.