QPlaceSearchReply Class
QPlaceSearchReply 类用于管理由QPlaceManager 的实例启动的位置搜索操作。更多内容...
| Header: | #include <QPlaceSearchReply> |
| qmake: | QT += location |
| Inherits: | QPlaceReply |
公共函数
| QPlaceSearchReply(QObject *parent = nullptr) | |
| virtual | ~QPlaceSearchReply() |
| QPlaceSearchRequest | nextPageRequest() const |
| QPlaceSearchRequest | previousPageRequest() const |
| QPlaceSearchRequest | request() const |
| QList<QPlaceSearchResult> | results() const |
重新实现的公共函数
| virtual QPlaceReply::Type | type() const override |
受保护函数
| void | setNextPageRequest(const QPlaceSearchRequest &next) |
| void | setPreviousPageRequest(const QPlaceSearchRequest &previous) |
| void | setRequest(const QPlaceSearchRequest &request) |
| void | setResults(const QList<QPlaceSearchResult> &results) |
详细说明
有关如何使用搜索响应的示例,请参阅“发现/搜索”。
另请参阅 QPlaceSearchRequest 和QPlaceManager 。
成员函数文档
[explicit] QPlaceSearchReply::QPlaceSearchReply(QObject *parent = nullptr)
根据给定的parent 构建搜索回复。
[virtual noexcept] QPlaceSearchReply::~QPlaceSearchReply()
删除搜索回复。
QPlaceSearchRequest QPlaceSearchReply::nextPageRequest() const
返回一个位置搜索请求,可用于请求搜索结果的下一页。如果没有下一页结果,则返回一个空的位置搜索请求。
另请参阅 previousPageRequest() 和setNextPageRequest()。
QPlaceSearchRequest QPlaceSearchReply::previousPageRequest() const
返回一个位置搜索请求,可用于请求上一页的搜索结果。如果不存在上一页的结果,则返回一个空的位置搜索请求。
另请参阅 nextPageRequest() 和setPreviousPageRequest()。
QPlaceSearchRequest QPlaceSearchReply::request() const
返回用于生成此响应的搜索请求。
另请参阅 setRequest()。
QList<QPlaceSearchResult> QPlaceSearchReply::results() const
返回一个搜索结果列表;
另请参阅 setResults()。
[protected] void QPlaceSearchReply::setNextPageRequest(const QPlaceSearchRequest &next)
将搜索结果请求的下一页设置为next 。
另请参阅 nextPageRequest()。
[protected] void QPlaceSearchReply::setPreviousPageRequest(const QPlaceSearchRequest &previous)
将搜索结果请求的上一页设置为previous 。
另请参阅 previousPageRequest()。
[protected] void QPlaceSearchReply::setRequest(const QPlaceSearchRequest &request)
设置用于生成此回复的搜索request 。
另请参阅 request()。
[protected] void QPlaceSearchReply::setResults(const QList<QPlaceSearchResult> &results)
设置搜索列表results 。
另请参阅 results()。
[override virtual] QPlaceReply::Type QPlaceSearchReply::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.