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
このプロパティは、プラグイン・パラメータの名前を1つのフォーマットされた文字列として保持します。このプロパティはライトワンス・プロパティです。
value : QVariant
このプロパティは、異なるタイプの値(variant)をサポートするプラグインパラメータの値を保持します。このプロパティはライトワンスプロパティです。
© 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.