Auf dieser Seite

QOpcUaXValue Class

Der OPC UA XVType. Mehr...

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

Öffentliche Funktionen

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

Detaillierte Beschreibung

Dies ist die Darstellung des Typs „ Qt OPC UA “ für den in OPC UA 1.05 Teil 8, 5.6.8 definierten OPC-UA-XVType-Typ. Dieser Typ wird verwendet, um Werte mit Float-Genauigkeit auf einer Achse mit doppelter Genauigkeit zu positionieren.

Dokumentation der Mitgliedsfunktionen

QOpcUaXValue::QOpcUaXValue()

„default“ erstellt ein XValue-Objekt, bei dem keine Parameter festgelegt sind.

QOpcUaXValue::QOpcUaXValue(double x, float value)

Erstellt einen XValue mit der Position „ x “ und dem Wert „ value “.

QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)

Erstellt einen XValue aus „ rhs “.

void QOpcUaXValue::setValue(float value)

Setzt den Wert für die Position x auf „ value “.

Siehe auch value().

void QOpcUaXValue::setX(double x)

Setzt die Position des Werts auf der Achse auf „ x “.

Siehe auch x().

float QOpcUaXValue::value() const

Gibt den Wert für die Position x zurück.

Siehe auch „ setValue()“.

double QOpcUaXValue::x() const

Gibt die Position des Werts auf der Achse zurück.

Siehe auch „ setX()“.

QOpcUaXValue::operator QVariant() const

Wandelt diesen XValue in „ QVariant “ um.

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

Setzt die Werte aus „ rhs “ in diesem XValue.

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

Gibt „ true “ zurück, wenn dieser XValue denselben Wert wie „ rhs “ hat.

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