本页内容

QPlaceSearchSuggestionReply Class

QPlaceSearchSuggestionReply 类负责管理由QPlaceManager 实例启动的搜索建议操作。更多内容...

Header: #include <QPlaceSearchSuggestionReply>
qmake: QT += location
Inherits: QPlaceReply

公共函数

QPlaceSearchSuggestionReply(QObject *parent = nullptr)
virtual ~QPlaceSearchSuggestionReply()
QStringList suggestions() const

重新实现的公共函数

virtual QPlaceReply::Type type() const override

受保护函数

void setSuggestions(const QStringList &suggestions)

详细说明

操作成功完成后,响应将包含一组搜索词建议。有关如何使用搜索建议响应的示例,请参阅“搜索建议”。

另请参阅 QPlaceManager 。

成员函数文档

[explicit] QPlaceSearchSuggestionReply::QPlaceSearchSuggestionReply(QObject *parent = nullptr)

根据给定的parent 构建一条搜索建议回复。

[virtual noexcept] QPlaceSearchSuggestionReply::~QPlaceSearchSuggestionReply()

销毁该回复。

[protected] void QPlaceSearchSuggestionReply::setSuggestions(const QStringList &suggestions)

设置搜索词suggestions 。

另请参阅 suggestions()。

QStringList QPlaceSearchSuggestionReply::suggestions() const

返回搜索词建议。

另请参阅 setSuggestions()。

[override virtual] QPlaceReply::Type QPlaceSearchSuggestionReply::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.