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) |
详细描述
如果操作成功,则回复中的位置数与请求中的位置数一致。如果未找到请求中的特定位置,则会在回复中使用默认构建的位置作为位置保持器。这样,请求中的输入位置和回复中的输出位置之间总是一一对应的关系。
如果操作不成功,位置数始终为零。
有关如何使用匹配回复的示例,请参阅管理器之间的位置匹配。
另请参阅 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() 常量。
返回回复的类型。
© 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.