このページでは

PluginParameter QML Type

PluginParameter 型は、位置プラグインのパラメータを表します。詳細...

Import Statement: import QtPositioning
Since: QtPositioning 5.14

プロパティ

詳細な説明

PluginParameter オブジェクトは、プラグインに何らかのパラメータを提供するために使用されます。通常、これらのパラメータには、サービスへのアクセスに必要なアプリケーショントークン、ネットワークアクセスに使用するプロキシサーバー、シリアル GPS レシーバーが接続されているシリアルポートなどの詳細情報が含まれます。

このようなパラメータを設定するには、PositionSource オブジェクトなど、プラグインパラメータを構成オブジェクトとして受け入れる要素内でPluginParameterを宣言し、そのname およびvalue プロパティに値を設定します。各プラグインで有効なパラメータ名のリストは、位置情報プラグインのデフォルトプラグインページで確認できます。

使用例

次の例は、データソースを指定するnmea.sourceパラメータを使用してNMEAプラグインをインスタンス化する方法を示しています。

PositionSource {
    name: "nmea"
    PluginParameter { name: "nmea.source"; value: "serial:/dev/ttyACM0" }
}

プロパティのドキュメント

name : string

このプロパティには、プラグインパラメータの名前が、フォーマット済みの単一の文字列として格納されます。このプロパティは、一度のみ書き込み可能なプロパティです。

value : QVariant

このプロパティには、さまざまな種類の値(バリアント)をサポートするプラグインパラメータの値が格納されます。このプロパティは、一度だけ書き込み可能なプロパティです。

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