QPlaceProposedSearchResult Class

QPlaceProposedSearchResult 类表示包含建议搜索的搜索结果。更多

Header: #include <QPlaceProposedSearchResult>
qmake: QT += location
Since: QtLocation 5.2
Inherits: QPlaceSearchResult

公共函数

QPlaceProposedSearchResult()
QPlaceProposedSearchResult(const QPlaceSearchRequest &other)
virtual ~QPlaceProposedSearchResult()
QPlaceSearchRequest searchRequest() const
void setSearchRequest(const QPlaceSearchRequest &request)

详细说明

另请参阅 QPlaceSearchResult

成员函数文档

QPlaceProposedSearchResult::QPlaceProposedSearchResult()

构建新的搜索结果。

QPlaceProposedSearchResult::QPlaceProposedSearchResult(const QPlaceSearchRequest &other)

如果可能,构建other 的副本,否则构建默认的建议搜索结果。

[virtual noexcept] QPlaceProposedSearchResult::~QPlaceProposedSearchResult()

销毁提议的搜索结果。

QPlaceSearchRequest QPlaceProposedSearchResult::searchRequest() const

返回地方搜索请求,可用于执行额外的建议搜索。

另请参阅 setSearchRequest()。

void QPlaceProposedSearchResult::setSearchRequest(const QPlaceSearchRequest &request)

将建议的搜索请求设置为request

另请参阅 searchRequest() 。

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