Nesta página

QOpcUaXValue Class

O OPC UA XVType. Mais...

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

Funções 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

Descrição detalhada

Esta é a representação do tipo “ Qt OPC UA ” para o tipo OPC UA XVType definido na norma OPC UA 1.05, parte 8, 5.6.8. Esse tipo é utilizado para posicionar valores de precisão flutuante em um eixo com precisão dupla.

Documentação das funções de membro

QOpcUaXValue::QOpcUaXValue()

O `default` cria um objeto `XValue` sem parâmetros definidos.

QOpcUaXValue::QOpcUaXValue(double x, float value)

Cria um XValue com a posição x e o valor value.

QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)

Cria um XValue a partir de ` rhs`.

void QOpcUaXValue::setValue(float value)

Define o valor da posição x como value.

Veja também value().

void QOpcUaXValue::setX(double x)

Define a posição do valor no eixo como x.

Veja também x().

float QOpcUaXValue::value() const

Retorna o valor correspondente à posição x.

Veja também setValue().

double QOpcUaXValue::x() const

Retorna a posição do valor no eixo.

Veja também setX().

QOpcUaXValue::operator QVariant() const

Converte este XValue em um QVariant.

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

Define os valores de rhs neste XValue.

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

Retorna ` true ` se este `XValue` tiver o mesmo 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.