QPlaceMatchReply 类
QPlaceMatchReply 类管理由 QPlaceManager 实例启动的空间匹配操作。 更多...
| 头文件 | #include <QPlaceMatchReply> | 
| qmake | QT += location | 
| 继承 | QPlaceReply | 
公共函数
| QPlaceMatchReply(QObject *parent = nullptr) | |
| 虚拟 | ~QPlaceMatchReply() | 
| QList<QPlace> | places() const | 
| QPlaceMatchRequest | request() const | 
重写的公共函数
| 虚拟 QPlaceReply::Type | type() const override | 
保护函数
| void | setPlaces(const QList<QPlace> &places) | 
| void | setRequest(const QPlaceMatchRequest &request) | 
详细描述
如果操作成功,则回复中空间的数量与请求中的数量匹配。如果在请求中找不到特定空间,则使用默认构造的空间用作回复中的占位符。这样,请求中的输入空间和回复中的输出空间之间始终存在一对一的关系。
如果操作不成功,则空间的数量始终为零。
有关如何使用匹配回复的示例,请参阅 在管理者之间匹配空间。
另请参阅QPlaceMatchRequest 和 QPlaceManager。
成员函数文档
[显式] QPlaceMatchReply::QPlaceMatchReply(QObject *parent = nullptr)
使用给定的 parent 构造一个匹配回复。
[虚拟 noexcept] QPlaceMatchReply::~QPlaceMatchReply()
销毁匹配回复。
QList<QPlace> QPlaceMatchReply::places() const
返回匹配空间列表;
另请参阅setPlaces。
QPlaceMatchRequest QPlaceMatchReply::request() const
返回用于生成此回复的匹配请求。
另请参阅setRequest。
[受保护的] void QPlaceMatchReply::setPlaces(const QList<QPlace> &places)
设置匹配位置列表。
另请参阅 places().
[受保护的] void QPlaceMatchReply::setRequest(const QPlaceMatchRequest &request)
设置用于生成此回复的匹配请求。
另请参阅 request().
[重写虚函数] QPlaceReply::Type QPlaceMatchReply::type() const
重新实现了: QPlaceReply::type() const.
返回回复的类型。
© 2024 Qt公司。本文档中包含的贡献的版权属于各自的所有者。文中提供的文档于免费软件基金会发布的GNU自由文档许可证版本1.3的条款下获得许可。Qt及其相关标志是芬兰以及/或世界其他国家的Qt公司的商标。所有其他商标均为各自所有者的财产。