ReadResult QML Type

包含从服务器读取的结果数据。更多

Import Statement: import QtOpcUa
Since: QtOpcUa 5.13
Status: Deprecated since 6.9

自 QtOpcUa 6.9 起,该类型已被弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

该类型用于在使用函数Connection::readNodeAttributes 从服务器读取数据后传递读取数据。

属性文档

attribute : Constants.NodeAttribute [read-only]

读取数据的节点属性。


indexRange : string [read-only]

读取数据的索引范围。


namespaceName : string [read-only]

被读取节点的命名空间名称。


nodeId : string [read-only]

被读取节点的节点 ID。


serverTimestamp : datetime [read-only]

读取数据的服务器时间戳。


sourceTimestamp : datetime [read-only]

读取数据的源时间戳。


status : Status [read-only]

ReadResult 的结果状态。在使用ReadResult 的任何值之前,应检查Status.isGood 的状态。以确保服务器提供了有效数据。


value : variant [read-only]

请求读取的实际数据。


© 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.