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

Public Functions

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

Detailed Description

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

Member Function Documentation


Default constructs a XValue object with no parameters set.

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.

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.

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

Sets the values from rhs in this XValue.

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

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

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