このページでは

QPlaceMatchRequest Class

QPlaceMatchRequest クラスは、あるマネージャー内の場所と別のマネージャー内の場所との一致を検索するために使用されます。これは、一連のリクエストパラメータを表します。詳細...

Header: #include <QPlaceMatchRequest>
qmake: QT += location

パブリック関数

QPlaceMatchRequest()
QPlaceMatchRequest(const QPlaceMatchRequest &other)
QPlaceMatchRequest(QPlaceMatchRequest &&other)
~QPlaceMatchRequest()
void clear()
QVariantMap parameters() const
QList<QPlace> places() const
void setParameters(const QVariantMap &parameters)
void setPlaces(const QList<QPlace> &places)
void setResults(const QList<QPlaceSearchResult> &results)
QPlaceMatchRequest &operator=(const QPlaceMatchRequest &other)

静的パブリックメンバー

const QString AlternativeId
bool operator!=(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)
bool operator==(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)

詳細な説明

現在のマネージャーに対応する、あるいは一致する場所がある可能性のある、別のマネージャーの場所は、setPlaces() またはsetResults() を使用して割り当てられます。マッチングの基準を決定する一連の追加パラメータが指定されます。

マッチングの一般的なキーは `QPlaceMatchRequest::AlternativeId` であり、値は `x_id_<プロバイダ名>`(例: `x_id_here`)という形式の代替識別子属性タイプです。プロバイダ名は、`QGeoServiceProvider ` インスタンスに指定された名前です。

マッチングリクエストの使用例については、「マネージャー間の場所のマッチング」を参照してください。

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

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

QPlaceMatchRequest::QPlaceMatchRequest()

デフォルトコンストラクタ。新しいリクエストオブジェクトを生成します。

[noexcept] QPlaceMatchRequest::QPlaceMatchRequest(const QPlaceMatchRequest &other)

other のコピーを作成します。

[constexpr noexcept default] QPlaceMatchRequest::QPlaceMatchRequest(QPlaceMatchRequest &&other)

QPlaceMatchRequest のインスタンスをMoveコンストラクタで生成します。

[noexcept] QPlaceMatchRequest::~QPlaceMatchRequest()

リクエストオブジェクトを破棄します。

void QPlaceMatchRequest::clear()

マッチリクエストをクリアします。

QVariantMap QPlaceMatchRequest::parameters() const

一致した場所のパラメータを返します。

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

QList<QPlace> QPlaceMatchRequest::places() const

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

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

void QPlaceMatchRequest::setParameters(const QVariantMap &parameters)

一致した場所の「parameters 」を設定します。

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

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

一致させるplaces のリストを設定します。

places() およびsetResults()も参照してください 。

void QPlaceMatchRequest::setResults(const QList<QPlaceSearchResult> &results)

results という検索セットを使用して、一致させるべき場所を設定する便利な関数です。

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

[noexcept] QPlaceMatchRequest &QPlaceMatchRequest::operator=(const QPlaceMatchRequest &other)

この検索リクエストにother を割り当て、このマッチリクエストへの参照を返します。

メンバー変数のドキュメント

const QString QPlaceMatchRequest::AlternativeId

一致処理を別の場所識別子を用いて行うことを指定するためのキーです。

関連する非メンバー

[noexcept] bool operator!=(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)

lhs がrhs と等しくない場合は true を返し、そうでない場合は false を返します。

[noexcept] bool operator==(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)

lhs がrhs と等しい場合はtrueを返し、そうでない場合はfalseを返します。

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