이 페이지에서

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.