在本页

AttributeOperand QML Type

OPC UA AttributeOperand 类型。更多

Import Statement: import QtOpcUa
Since: QtOpcUa 5.13
Status: Deprecated since 6.9

自 QtOpcUa 6.9 起,该类型已被弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

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.