QOpcUaXValue Class
OPC UA XVType。更多
头文件: | #include <QOpcUaXValue> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
公共函数
QOpcUaXValue() | |
QOpcUaXValue(double x, float value) | |
QOpcUaXValue(const QOpcUaXValue &rhs) | |
void | setValue(float value) |
void | setX(double x) |
float | value() const |
double | x() const |
QVariant | operator QVariant() const |
QOpcUaXValue & | operator=(const QOpcUaXValue &rhs) |
bool | operator==(const QOpcUaXValue &rhs) const |
成员函数文档
QOpcUaXValue::QOpcUaXValue()
默认情况下构建一个未设置参数的 XValue 对象。
QOpcUaXValue::QOpcUaXValue(double x, float value)
构建一个 XValue,位置x ,值value 。
QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)
从rhs 中构造一个 XValue。
void QOpcUaXValue::setValue(float value)
将位置 x 的值设置为value 。
另请参见 value() 。
void QOpcUaXValue::setX(double x)
将值在坐标轴上的位置设置为x 。
另请参阅 x() 。
float QOpcUaXValue::value() const
返回位置 x 的值。
另请参见 setValue()。
double QOpcUaXValue::x() const
返回值在坐标轴上的位置。
另请参见 setX()。
QVariant QOpcUaXValue::operator QVariant() const
将 XValue 转换为QVariant 。
QOpcUaXValue &QOpcUaXValue::operator=(const QOpcUaXValue &rhs)
在此 XValue 中设置rhs 中的值。
bool QOpcUaXValue::operator==(const QOpcUaXValue &rhs) const
如果此 XValue 的值与rhs 相同,则返回true
。
© 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.