In questa pagina

QOpcUaXValue Class

OPC UA XVType. Per saperne di più...

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

Funzioni pubbliche

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

Descrizione dettagliata

Questa è la rappresentazione Qt OPC UA per il tipo OPC UA XVType definito in OPC UA 1.05, parte 8, 5.6.8. Questo tipo viene utilizzato per posizionare valori di precisione float su un asse con precisione doppia.

Documentazione delle funzioni membro

QOpcUaXValue::QOpcUaXValue()

Il valore predefinito crea un oggetto XValue senza parametri specificati.

QOpcUaXValue::QOpcUaXValue(double x, float value)

Crea un oggetto XValue con posizione x e valore value.

QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)

Crea un oggetto XValue a partire da un rhs.

void QOpcUaXValue::setValue(float value)

Imposta il valore della posizione x su value.

Vedi anche value().

void QOpcUaXValue::setX(double x)

Imposta la posizione del valore sull'asse su x.

Vedi anche x().

float QOpcUaXValue::value() const

Restituisce il valore corrispondente alla posizione x.

Vedi anche setValue().

double QOpcUaXValue::x() const

Restituisce la posizione del valore sull'asse.

Vedi anche setX().

QOpcUaXValue::operator QVariant() const

Converte questo XValue in un QVariant.

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

Imposta i valori provenienti da rhs in questo XValue.

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

Restituisce " true " se questo XValue ha lo stesso valore di 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.