このページでは

QOpcUaXValue Class

OPC UA XVType。詳細はこちら...

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

パブリック関数

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

詳細な説明

これは、OPC UA 1.05 パート 8、5.6.8 で定義されている OPC UA XVType 型の、Qt OPC UA による表現です。この型は、浮動小数点精度の値を倍精度軸上に位置付けるために使用されます。

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

QOpcUaXValue::QOpcUaXValue()

default は、パラメータが設定されていない XValue オブジェクトを生成します。

QOpcUaXValue::QOpcUaXValue(double x, float value)

位置x 、値value を持つXValueを構築します。

QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)

rhs から XValue を生成します。

void QOpcUaXValue::setValue(float value)

位置 x の値を `value` に設定します。

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

void QOpcUaXValue::setX(double x)

軸上の値の位置を `x` に設定します。

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

float QOpcUaXValue::value() const

位置 x に対応する値を返します。

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

double QOpcUaXValue::x() const

軸上のその値の位置を返します。

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

QOpcUaXValue::operator QVariant() const

このXValueをQVariant に変換します。

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

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

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

この XValue の値が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.