Nesta página

QOpcUaRange Class

O tipo “Range” do OPC UA. Mais...

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

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

Descrição detalhada

Esta é a representação do tipo “ Qt OPC UA ” para o tipo “OPC UA Range”, definido na norma OPC UA 1.05, parte 8, seção 5.6.2. Consiste em dois valores do tipo double que indicam o mínimo e o máximo do intervalo. Os intervalos são usados principalmente para armazenar informações sobre valores aceitáveis para um nó.

Documentação das funções de membro

QOpcUaRange::QOpcUaRange()

O `default` cria um intervalo sem parâmetros definidos.

QOpcUaRange::QOpcUaRange(double low, double high)

Cria um intervalo com o valor mínimo low e o valor máximo high.

QOpcUaRange::QOpcUaRange(const QOpcUaRange &rhs)

Cria um intervalo a partir de rhs.

double QOpcUaRange::high() const

Retorna o maior valor do intervalo.

Veja também setHigh().

double QOpcUaRange::low() const

Retorna o menor valor do intervalo.

Veja também setLow().

void QOpcUaRange::setHigh(double high)

Define o valor máximo do intervalo como high.

Veja também high().

void QOpcUaRange::setLow(double low)

Define o valor mínimo do intervalo como low.

Veja também ` low()`.

QOpcUaRange::operator QVariant() const

Converte esse intervalo para ` QVariant`.

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

Define os valores de rhs neste intervalo.

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

Retorna ` true ` se esse intervalo 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.