Sur cette page

QOpcUaXValue Class

Le type XV d'OPC UA. En savoir 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 la norme OPC UA 1.05, partie 8, section 5.6.8. Ce type est utilisé pour positionner des valeurs de précision flottante sur un axe de double précision.

Documentation des fonctions membres

QOpcUaXValue::QOpcUaXValue()

La valeur par défaut crée un objet XValue sans aucun paramètre défini.

QOpcUaXValue::QOpcUaXValue(double x, float value)

Crée un objet XValue avec la position x et la valeur value.

QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)

Crée un objet XValue à partir de rhs.

void QOpcUaXValue::setValue(float value)

Définit la valeur de la position x sur value.

Voir également value().

void QOpcUaXValue::setX(double x)

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

Voir également x().

float QOpcUaXValue::value() const

Renvoie la valeur correspondant à la position x.

Voir aussi setValue().

double QOpcUaXValue::x() const

Renvoie la position de la valeur sur l'axe.

Voir également setX().

QOpcUaXValue::operator QVariant() const

Convertit cette valeur XValue en « QVariant ».

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

Définit les valeurs provenant de rhs dans cette instance XValue.

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

Renvoie « true » si cette valeur XValue 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.