RelativeNodeId QML Type
通过起始节点和路径指定相对节点。更多
Import Statement: | import QtOpcUa |
Since: | QtOpcUa 5.12 |
Status: | Deprecated since 6.9 |
自 QtOpcUa 6.9 起,该类型已被弃用。我们强烈建议不要在新代码中使用它。
属性
详细说明
从给定的起始节点开始,服务器会尝试将路径属性的内容与服务器上的任何现有节点相匹配。只有当路径与一个目标节点完全匹配时,才会使用该路径。部分或多个匹配无法处理,会被视为错误。
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 |
节点标识符的命名空间。起始节点指定开始解析路径的节点。它可以是绝对节点标识符,也可以是相对节点标识符。
另请参阅 NodeId 和RelativeNodeId 。
© 2025 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.