In questa pagina

QOpcUaComplexNumber Class

Il tipo "ComplexNumber" di OPC UA. Maggiori informazioni...

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

Funzioni pubbliche

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

Descrizione dettagliata

Il tipo ComplexNumberType definito nella specifica OPC UA 1.05, parte 8, sezione 5.6.4. Memorizza un numero complesso con precisione in virgola mobile.

Documentazione delle funzioni dei membri

QOpcUaComplexNumber::QOpcUaComplexNumber()

Default crea un numero complesso senza impostare alcun parametro.

QOpcUaComplexNumber::QOpcUaComplexNumber(float real, float imaginary)

Crea un numero complesso con parte reale real e parte immaginaria imaginary.

float QOpcUaComplexNumber::imaginary() const

Restituisce la parte immaginaria del numero complesso.

Vedi anche setImaginary().

float QOpcUaComplexNumber::real() const

Restituisce la parte reale del numero complesso.

Vedi anche setReal().

void QOpcUaComplexNumber::setImaginary(float imaginary)

Imposta la parte immaginaria del numero complesso su imaginary.

Vedi anche imaginary().

void QOpcUaComplexNumber::setReal(float real)

Imposta la parte reale del numero complesso su real.

Vedi anche real().

QOpcUaComplexNumber::operator QVariant() const

Converte questo numero complesso in QVariant.

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

Imposta i valori provenienti da rhs in questo numero complesso.

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

Restituisce ` true ` se questo numero complesso ha lo stesso valore di ` rhs`.

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