このページでは

QOpcUaRange Class

OPC UAの「Range」タイプ。詳細...

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

パブリック関数

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

詳細な説明

これは、OPC UA 1.05 第8部 5.6.2で定義されているOPC UA Range型に対するQt OPC UA での表現です。これは、範囲の最小値と最大値を示す2つのdouble型値で構成されます。範囲は主に、ノードの許容値に関する情報を格納するために使用されます。

メンバ関数のドキュメント

QOpcUaRange::QOpcUaRange()

default は、パラメータが設定されていない範囲を生成します。

QOpcUaRange::QOpcUaRange(double low, double high)

最小値low 、最大値high の範囲を作成します。

QOpcUaRange::QOpcUaRange(const QOpcUaRange &rhs)

rhs の範囲を作成します。

double QOpcUaRange::high() const

範囲内の最大値を返します。

setHigh()も参照してください 。

double QOpcUaRange::low() const

範囲の最小値を返します。

setLow()も参照してください 。

void QOpcUaRange::setHigh(double high)

範囲の上限値を `high` に設定します。

high()も参照してください 。

void QOpcUaRange::setLow(double low)

範囲の下限値を `low` に設定します。

low()も参照してください 。

QOpcUaRange::operator QVariant() const

この範囲をQVariant に変換します。

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

rhs の値を、この範囲に設定します。

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

この範囲の値が `rhs` と同一である場合、true を返します。

© 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.