Sur cette page

QOpcUaXValue Class

Le type OPC UA XVType. Plus...

En-tête : #include <QOpcUaXValue>
CMake : find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake : QT += opcua

Fonctions publiques

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

Description détaillée

Il s'agit de la représentation Qt OPC UA du type OPC UA XVType défini dans OPC UA 1.05 partie 8, 5.6.8. Ce type est utilisé pour positionner des valeurs de précision flottante sur un axe de précision double.

Documentation des fonctions membres

QOpcUaXValue::QOpcUaXValue()

Default construit un objet XValue sans paramètres définis.

QOpcUaXValue::QOpcUaXValue(double x, float value)

Construit une valeur XV avec la position x et la valeur value.

QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)

Construit une valeur XV à partir de rhs.

void QOpcUaXValue::setValue(float value)

Fixe la valeur de la position x à value.

Voir aussi value().

void QOpcUaXValue::setX(double x)

Définit la position de la valeur sur l'axe à x.

Voir aussi x().

float QOpcUaXValue::value() const

Renvoie la valeur de la position x.

Voir également setValue().

double QOpcUaXValue::x() const

Renvoie la position de la valeur sur l'axe.

Voir également setX().

QOpcUaXValue::operator QVariant() const

Convertit cette valeur XV en QVariant.

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

Définit les valeurs de rhs dans cette XValue.

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

Renvoie true si cette valeur XV a la même valeur 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.