En esta página

QOpcUaDoubleComplexNumber Class

El tipo «DoubleComplexNumber» de OPC UA. Más información...

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

Funciones públicas

QOpcUaDoubleComplexNumber()
QOpcUaDoubleComplexNumber(double real, double imaginary)
double imaginary() const
double real() const
void setImaginary(double imaginary)
void setReal(double real)
operator QVariant() const
QOpcUaDoubleComplexNumber &operator=(const QOpcUaDoubleComplexNumber &rhs)
bool operator==(const QOpcUaDoubleComplexNumber &rhs) const

Descripción detallada

El tipo DoubleComplexNumberType definido en OPC UA 1.05, parte 8, 5.6.5. Almacena un número complejo con doble precisión.

Documentación de las funciones de miembro

QOpcUaDoubleComplexNumber::QOpcUaDoubleComplexNumber()

Por defecto, se crea un número complejo de tipo «double» sin definir ningún parámetro.

QOpcUaDoubleComplexNumber::QOpcUaDoubleComplexNumber(double real, double imaginary)

Crea un número complejo doble con parte real real y parte imaginaria imaginary.

double QOpcUaDoubleComplexNumber::imaginary() const

Devuelve la parte imaginaria del número complejo.

Véase también setImaginary().

double QOpcUaDoubleComplexNumber::real() const

Devuelve la parte real del número complejo.

Véase también setReal().

void QOpcUaDoubleComplexNumber::setImaginary(double imaginary)

Establece la parte imaginaria del número complejo en imaginary.

Véase también imaginary().

void QOpcUaDoubleComplexNumber::setReal(double real)

Establece la parte real del número complejo en real.

Véase también real().

QOpcUaDoubleComplexNumber::operator QVariant() const

Convierte este número complejo de tipo «double» en un número de tip QVariant.

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

Establece los valores de rhs en este número complejo de tipo «double».

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

Devuelve ` true ` si este número complejo de tipo `double` tiene el mismo valor que ` 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.