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
节点标识符的命名空间。该标识符可以是数字形式的索引,也可以是字符串形式的名称。可转换为整数的字符串被视为命名空间索引。
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.