AttributeOperand QML Type
OPC UA 的 AttributeOperand 类型。更多内容...
| Import Statement: | import QtOpcUa |
| Since: | QtOpcUa 5.13 |
| Status: | Deprecated since 6.9 |
自 QtOpcUa 6.9 起,此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- alias : string
- browsePath : list<OpcUaNodeId>
- indexRange : string
- nodeAttribute : Constants.NodeAttribute
- typeId : string
详细说明
AttributeOperand 在 OPC UA 1.05 第 4 部分 7.7.4.4 中进行了定义。其用途与SimpleAttributeOperand 相同,但具有更多可配置选项。
属性文档
alias : string
操作数的别名。这使得该实例可作为过滤器中其他操作的操作数使用。
browsePath : list<OpcUaNodeId>
包含该属性的节点的浏览路径。
import QtOpcUa as QtOpcUa
QtOpcUa.AttributeOperand {
...
browsePath: [
QtOpcUa.NodeId {
identifier: "Message"
ns: "http://opcfoundation.org/UA/"
}
...
]
}indexRange : string
用于标识属性值的单个值或子集的索引范围字符串。
import QtOpcUa as QtOpcUa
QtOpcUa.AttributeOperand {
...
indexRange: "0:2"
}nodeAttribute : Constants.NodeAttribute
节点browsePath 所指向的属性。默认值为Constants.NodeAttribute.Value 。
import QtOpcUa as QtOpcUa
QtOpcUa.AttributeOperand {
...
nodeAttribute: QtOpcUa.Constants.NodeAttribute.Value
}typeId : string
类型定义节点的节点 ID。操作数的类型将是该类型或其子类型之一。
import QtOpcUa as QtOpcUa
QtOpcUa.AttributeOperand {
...
typeId: "ns=0;i=2041"
}© 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.