En esta página

QOpcUaXValue Class

El OPC UA XVType. Más información...

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

Funciones públicas

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

Descripción detallada

Esta es la representación « Qt OPC UA » del tipo OPC UA XVType definido en OPC UA 1.05, parte 8, 5.6.8. Este tipo se utiliza para situar valores de precisión flotante en un eje con precisión doble.

Documentación de las funciones de miembro

QOpcUaXValue::QOpcUaXValue()

El valor por defecto crea un objeto XValue sin parámetros definidos.

QOpcUaXValue::QOpcUaXValue(double x, float value)

Crea un objeto XValue con la posición x y el valor value.

QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)

Crea un objeto XValue a partir de un rhs.

void QOpcUaXValue::setValue(float value)

Establece el valor de la posición x en value.

Véase también value().

void QOpcUaXValue::setX(double x)

Establece la posición del valor en el eje en x.

Véase también x().

float QOpcUaXValue::value() const

Devuelve el valor correspondiente a la posición x.

Véase también ` setValue()`.

double QOpcUaXValue::x() const

Devuelve la posición del valor en el eje.

Véase también setX().

QOpcUaXValue::operator QVariant() const

Convierte este XValue en un QVariant.

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

Establece los valores de rhs en este XValue.

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

Devuelve « true » si este XValue tiene el mismo valor que « rhs ».

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