LiteralOperand QML Type

OPC UA LiteralOperand 类型。更多

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

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

属性

详细说明

LiteralOperand 定义于 OPC UA 1.05 第 4 部分 7.7.4.3。它包含一个字面值,用作过滤器的操作数。

设置类型时应与服务器上的预期类型相匹配。否则类型将被猜测,并可能因与服务器不匹配而导致错误。

import QtOpcUa as QtOpcUa

QtOpcUa.LiteralOperand {
    value: 43.21
    type: QtOpcUa.Constants.Double
}

属性文档

type : QOpcUa.Types

字面操作数值的类型。


value : variant

字面操作数的值。


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