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
字面量操作数的值。
© 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.