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

返回回复类型。

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