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.
회신 유형을 반환합니다.
© 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.