PluginParameter QML Type

PluginParameter型は、ポジションプラグインのパラメータを記述します。詳細...

Import Statement: import QtPositioning
Since: QtPositioning 5.14

プロパティ

詳しい説明

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

このようなパラメータを設定するには、PositionSource オブジェクトのような、プラグインパラメータを設定オブジェクトとして受け付ける要素の内部で PluginParameter を宣言し、そのnamevalue プロパティに値を設定します。各プラグインの有効なパラメータ名のリストは、ポジションプラグインのデフォルトプラグインページから入手できます。

使用例

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

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

プロパティ ドキュメント

name : string

このプロパティは、プラグイン・パラメータの名前を 1 つのフォーマット文字列として保持します。このプロパティは、ライトワンス・プロパティです。


value : QVariant

このプロパティは、プラグイン・パラメータの値を保持します。このプロパティはライトオンス・プロパティです。


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