RelativeNodeId QML Type
通过起始节点和路径指定一个相对节点。更多...
| Import Statement: | import QtOpcUa |
| Since: | QtOpcUa 5.12 |
| Status: | Deprecated since 6.9 |
自 QtOpcUa 6.9 起,此类型已被废弃。我们强烈建议在新代码中不要使用它。
属性
信号
详细说明
服务器从给定的起始节点开始,尝试将 path 属性的内容与服务器上任何现有节点进行匹配。只有当路径与恰好一个目标节点完全匹配时,才会采用该路径。部分匹配或多重匹配无法处理,并将被视为错误。
import QtOpcUa as QtOpcUa
QtOpcUa.RelativeNodeId {
startNode: QtOpcUa.RelativeNodeId {
identifier: "s=Example.Node"
ns: "Example Namespace"
}
path: [ QtOpcUa.RelativeNodePath {
ns: "Test Namespace"
browseName: "SomeName"
}
...
]
}
}属性文档
path : list
指定节点的搜索路径。这是一个由OpcUaRelativeNodePath 对象组成的列表,用于指定目标节点相对于起始节点的相对路径。
startNode : NodeId
节点标识符的命名空间。起始节点指定了解析路径的起始节点。它可以是绝对或相对的节点 ID。
另请参阅 NodeId 和RelativeNodeId 。
Signal 文档
nodeChanged()
当底层节点发生变化时触发。这通常发生在命名空间或标识符发生变化时。
注意: 相应的处理程序 为onNodeChanged 。
© 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.