En esta página

QOpcUaRange Class

El tipo «Range» de OPC UA. Más información...

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

Funciones públicas

QOpcUaRange()
QOpcUaRange(double low, double high)
QOpcUaRange(const QOpcUaRange &rhs)
double high() const
double low() const
void setHigh(double high)
void setLow(double low)
operator QVariant() const
QOpcUaRange &operator=(const QOpcUaRange &rhs)
bool operator==(const QOpcUaRange &rhs) const

Descripción detallada

Esta es la representación de Qt OPC UA para el tipo «Rango» de OPC UA definido en OPC UA 1.05, parte 8, 5.6.2. Consta de dos valores de tipo «double» que indican el mínimo y el máximo del rango. Los rangos se utilizan principalmente para almacenar información sobre los valores aceptables para un nodo.

Documentación de las funciones de miembro

QOpcUaRange::QOpcUaRange()

«Default» crea un rango sin parámetros definidos.

QOpcUaRange::QOpcUaRange(double low, double high)

Crea un intervalo con el valor mínimo low y el valor máximo high.

QOpcUaRange::QOpcUaRange(const QOpcUaRange &rhs)

Crea un rango a partir de rhs.

double QOpcUaRange::high() const

Devuelve el valor máximo del rango.

Véase también setHigh().

double QOpcUaRange::low() const

Devuelve el valor más bajo del rango.

Véase también setLow().

void QOpcUaRange::setHigh(double high)

Establece el valor máximo del rango en high.

Véase también high().

void QOpcUaRange::setLow(double low)

Establece el valor mínimo del rango en low.

Véase también low().

QOpcUaRange::operator QVariant() const

Convierte este rango en « QVariant ».

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

Establece los valores de rhs en este intervalo.

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

Devuelve « true » si este rango 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.