QXValue Class


The OPC UA XVType. More...

Header: #include <QtOpcUa/qopcuatype.h>
qmake: QT += opcua

Public Functions

QXValue(const QOpcUa::QXValue &rhs)
QXValue(double x, float value)
void setValue(float value)
void setX(double x)
float value() const
double x() const
QVariant operator QVariant() const
QOpcUa::QXValue &operator=(const QOpcUa::QXValue &rhs)
bool operator==(const QOpcUa::QXValue &rhs) const

Detailed Description

The OPC UA XVType.

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


Default constructs an instance of QXValue.

QXValue::QXValue(const QOpcUa::QXValue &rhs)

Constructs an XValue from rhs.

QXValue::QXValue(double x, float value)

Constructs an XValue with position x and value value.


Destroys the instance of QXValue.

void QXValue::setValue(float value)

Sets the value for position x to value.

See also value().

void QXValue::setX(double x)

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

See also x().

float QXValue::value() const

Returns the value for position x.

See also setValue().

double QXValue::x() const

Returns the position of the value on the axis.

See also setX().

QVariant QXValue::operator QVariant() const

Converts this XValue to QVariant.

QOpcUa::QXValue &QXValue::operator=(const QOpcUa::QXValue &rhs)

Sets the values from rhs in this XValue.

bool QXValue::operator==(const QOpcUa::QXValue &rhs) const

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

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