QOpcUaRange Class
OPC UA 范围类型。更多内容...
| 头文件: | #include <QOpcUaRange> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
公共函数
| QOpcUaRange() | |
| QOpcUaRange(double low, double high) | |
| QOpcUaRange(const QOpcUaRange &rhs) | |
| double | high() const |
| double | low() const |
| void | setHigh(double high) |
| void | setLow(double low) |
| operator QVariant() const | |
| QOpcUaRange & | operator=(const QOpcUaRange &rhs) |
| bool | operator==(const QOpcUaRange &rhs) const |
详细说明
这是对OPC UA 1.05第8部分5.6.2节中定义的OPC UA范围类型的Qt OPC UA 表示形式。它由两个双精度值组成,分别表示该范围的最小值和最大值。范围主要用于存储节点可接受值的相关信息。
成员函数文档
QOpcUaRange::QOpcUaRange()
默认会构建一个未设置任何参数的范围。
QOpcUaRange::QOpcUaRange(double low, double high)
构建一个下限为low 、上限为high 的区间。
QOpcUaRange::QOpcUaRange(const QOpcUaRange &rhs)
从rhs 构建一个范围。
double QOpcUaRange::high() const
返回该范围内的最大值。
另请参阅 setHigh()。
double QOpcUaRange::low() const
返回该范围的最小值。
另请参阅 setLow()。
void QOpcUaRange::setHigh(double high)
将该范围的上限值设置为high 。
另请参阅 high()。
void QOpcUaRange::setLow(double low)
将该范围的下限值设置为low 。
另请参阅 low()。
QOpcUaRange::operator QVariant() const
将该范围转换为QVariant 。
QOpcUaRange &QOpcUaRange::operator=(const QOpcUaRange &rhs)
将rhs 中的值设置为该范围内的数值。
bool QOpcUaRange::operator==(const QOpcUaRange &rhs) const
如果该范围的值与rhs 相同,则返回true 。
© 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.