このページでは

QPlaceMatchReply Class

QPlaceMatchReply クラスは、QPlaceManager のインスタンスによって開始された場所の照合操作を管理します。詳細...

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

パブリック関数

QPlaceMatchReply(QObject *parent = nullptr)
virtual ~QPlaceMatchReply()
QList<QPlace> places() const
QPlaceMatchRequest request() const

再実装されたパブリック関数

virtual QPlaceReply::Type type() const override

プロテクトされた関数

void setPlaces(const QList<QPlace> &places)
void setRequest(const QPlaceMatchRequest &request)

詳細な説明

操作が成功した場合、応答のプレース数はリクエストのプレース数と一致します。リクエスト内の特定のプレースが見つからない場合、デフォルトで構築されたプレースが応答のプレースホルダーとして使用されます。このように、リクエストの入力プレースと応答の出力プレースの間には、常に 1 対 1 の関係があります。

操作が成功しなかった場合、プレースの数は常にゼロになります。

マッチング応答の使用例については、「マネージャー間のプレースのマッチング」を参照してください。

「 QPlaceMatchRequest 」および「QPlaceManager 」も参照してください 。

メンバ関数のドキュメント

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

指定されたparent を使用して、マッチの応答を生成します。

[virtual noexcept] QPlaceMatchReply::~QPlaceMatchReply()

マッチの返信を削除します。

QList<QPlace> QPlaceMatchReply::places() const

一致する場所のリストを返します。

setPlaces()も参照してください 。

QPlaceMatchRequest QPlaceMatchReply::request() const

この応答の生成に使用されたマッチリクエストを返します。

setRequest()も参照してください 。

[protected] void QPlaceMatchReply::setPlaces(const QList<QPlace> &places)

places に一致するリストを設定します。

places()も参照してください 。

[protected] void QPlaceMatchReply::setRequest(const QPlaceMatchRequest &request)

この応答の生成に使用されたrequest の一致を設定します。

request()も参照してください 。

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