MethodArgument QML Type
OpcUa 方法调用的参数。更多...
| Import Statement: | import QtOpcUa |
| Since: | QtOpcUa 5.13 |
| Status: | Deprecated since 6.9 |
自 QtOpcUa 6.9 起,此类型已被废弃。我们强烈建议不要在新代码中使用它。
属性
- value : variant
详细说明
在调用需要参数的方法时,使用此类型。
本示例演示了如何调用一个带有两个 double 类型参数的方法。
QtOpcUa.MethodNode {
...
inputArguments: [
QtOpcUa.MethodArgument {
value: 3
type: QtOpcUa.Constants.Double
},
QtOpcUa.MethodArgument {
value: 4
type: QtOpcUa.Constants.Double
}
]
}属性文档
value : 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.