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)

详细说明

有关如何使用搜索回复的示例,请参见Discovery/Search

另请参阅 QPlaceSearchRequestQPlaceManager

成员函数文档

[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() 常量。

返回回复的类型。

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