QOpcUaXValue Class | Qt OPC UA 6.4.1

- Qt 6.4
- Qt OPC UA
- C++ Classes
- QOpcUaXValue
- Qt 6.4.1 Reference Documentation

# QOpcUaXValue Class

The OPC UA XVType. More...

Header: | #include <QOpcUaXValue>
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: | QT += opcua

- List of all members, including inherited members

## Public Functions

| QOpcUaXValue(double x, float value)
| QOpcUaXValue(const QOpcUaXValue &rhs)
QOpcUaXValue & | operator=(const QOpcUaXValue &rhs)
void | setValue(float value)
void | setX(double x)
float | value() const
double | x() const
QVariant | operator QVariant() const
bool | operator==(const QOpcUaXValue &rhs) const

## Detailed Description

This is the Qt OPC UA representation for the OPC UA XVType type defined in OPC-UA part 8, 5.6.8. This type is used to position values of float precision on an axis with double precision.

## Member Function Documentation

### QOpcUaXValue::QOpcUaXValue(double x, float value)

Constructs an XValue with position x and value value.

### QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)

Constructs an XValue from rhs.

### QOpcUaXValue &QOpcUaXValue::operator=(const QOpcUaXValue &rhs)

Sets the values from rhs in this XValue.

### void QOpcUaXValue::setValue(float value)

Sets the value for position x to value.

See also value().

### void QOpcUaXValue::setX(double x)

Sets the position of the value on the axis to x.

See also x().

### float QOpcUaXValue::value() const

Returns the value for position x.

See also setValue().

### double QOpcUaXValue::x() const

Returns the position of the value on the axis.

See also setX().

### QVariant QOpcUaXValue::operator QVariant() const

Converts this XValue to QVariant.

### bool QOpcUaXValue::operator==(const QOpcUaXValue &rhs) const

Returns `true` if this XValue has the same value as rhs.