ValueNode QML Type
表示来自服务器的值节点。更多...
| Import Statement: | import QtOpcUa |
| Since: | QtOpcUa 5.12 |
| Inherits: | |
| Status: | Deprecated since 6.9 |
自 QtOpcUa 6.9 起,此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- serverTimestamp : Date
- sourceTimestamp : Date
- value : variant
- valueType : variant
详细说明
import QtOpcUa as QtOpcUa
QtOpcUa.ValueNode {
nodeId: QtOpcUa.NodeId {
ns: "Test Namespace"
identifier: "s=TestName"
}
connection: myConnection
}将在服务器上创建一个订阅,以便跟踪服务器上的值变化。
另请参阅 NodeId 、Connection 以及Node 。
属性文档
serverTimestamp : Date [read-only]
“value”属性的服务器时间戳。
sourceTimestamp : Date [read-only]
“value”属性的源时间戳。
value : variant
该节点的值。读取和写入此属性将访问服务器上的该节点。
valueType : variant
此节点的类型。初始值将设为QtOpcUa.Constants.Undefined ,并在建立首次连接时从服务器获取。任何值都将作为指定类型写入服务器。
© 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.