Auf dieser Seite

QOpcUaComplexNumber Class

Der OPC-UA-Typ „ComplexNumber“. Mehr...

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

Öffentliche Funktionen

QOpcUaComplexNumber()
QOpcUaComplexNumber(float real, float imaginary)
float imaginary() const
float real() const
void setImaginary(float imaginary)
void setReal(float real)
operator QVariant() const
QOpcUaComplexNumber &operator=(const QOpcUaComplexNumber &rhs)
bool operator==(const QOpcUaComplexNumber &rhs) const

Ausführliche Beschreibung

Der in OPC UA 1.05 Teil 8, 5.6.4 definierte Typ „ComplexNumberType“. Er speichert eine komplexe Zahl mit Float-Genauigkeit.

Dokumentation der Mitgliedsfunktionen

QOpcUaComplexNumber::QOpcUaComplexNumber()

„default“ erstellt eine komplexe Zahl, ohne dass Parameter festgelegt werden.

QOpcUaComplexNumber::QOpcUaComplexNumber(float real, float imaginary)

Erzeugt eine komplexe Zahl mit dem Realteil real und dem Imaginärteil imaginary.

float QOpcUaComplexNumber::imaginary() const

Gibt den Imaginärteil der komplexen Zahl zurück.

Siehe auch „ setImaginary()“.

float QOpcUaComplexNumber::real() const

Gibt den Realteil der komplexen Zahl zurück.

Siehe auch „ setReal()“.

void QOpcUaComplexNumber::setImaginary(float imaginary)

Setzt den Imaginärteil der komplexen Zahl auf imaginary.

Siehe auch imaginary().

void QOpcUaComplexNumber::setReal(float real)

Setzt den Realteil der komplexen Zahl auf real.

Siehe auch real().

QOpcUaComplexNumber::operator QVariant() const

Wandelt diese komplexe Zahl in „ QVariant “ um.

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

Setzt die Werte aus rhs in dieser komplexen Zahl.

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

Gibt „ true “ zurück, wenn diese komplexe Zahl 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.