NodeId QML Type
用标识符指定节点。更多
Import Statement: | import QtOpcUa |
Since: | QtOpcUa 5.12 |
Status: | Deprecated since 6.9 |
自 QtOpcUa 6.9 起,该类型已被弃用。我们强烈建议不要在新代码中使用它。
属性
- identifier : string
- ns : string
信号
详细说明
import QtOpcUa as QtOpcUa QtOpcUa.NodeId { identifier: "s=Example.Node" ns: "Example Namespace" }
属性文档
identifier : string |
节点的标识符。标识符必须以下列类型之一给出。
类型 | 示例 |
---|---|
数字 | i=23 |
字符串 | s=MyStringIdentifier |
GUID | g=08081e75-8e5e-319b-954f-f3a7613dc29b |
不透明(base64) | b=UXQgZnR3IQ== |
可以但不建议包含命名空间索引ns=X;s=...
。在这种情况下,给定的命名空间索引将从标识符中剥离,并设置为命名空间属性。
ns : string |
节点标识符的命名空间。标识符可以是数字索引,也可以是字符串名称。可转换为整数的字符串被视为命名空间索引。
信号文档
nodeChanged() |
当底层节点发生变化时发出。当命名空间或标识符发生变化时发生。
注: 相应的处理程序是onNodeChanged
。
© 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.