PluginParameter QML Type
PluginParameter 类型用于描述插件的参数。更多内容...
| Import Statement: | import QtLocation 6.12 |
| Since: | QtLocation 5.5 |
属性
详细说明
PluginParameter 对象用于向插件提供某种类型的参数。通常,这些参数包含诸如访问服务的应用程序令牌、用于网络访问的代理服务器,或是连接串行 GPS 接收器的串行端口等详细信息。
要设置此类参数,请在Plugin 对象内部声明一个PluginParameter,并为其指定name 和value 属性。有效的参数名称列表可在插件参考页面中查阅。
属性文档
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.