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 |
值属性的服务器时间戳。
sourceTimestamp : Date |
值属性的源时间戳。
value : variant |
此节点的值。读写此属性将访问服务器上的节点。
valueType : variant |
此节点的类型。初始值为QtOpcUa.Constants.Undefined ,并在首次建立连接时从服务器获取。任何值都将以指定的类型写入服务器。
© 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.