QOpcUaDoubleComplexNumber Class
OPC UA 的 DoubleComplexNumber 类型。更多内容...
| 头文件: | #include <QOpcUaDoubleComplexNumber> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
公共函数
| 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 |
成员函数文档
QOpcUaDoubleComplexNumber::QOpcUaDoubleComplexNumber()
默认情况下,会构建一个未设置任何参数的双精度复数。
QOpcUaDoubleComplexNumber::QOpcUaDoubleComplexNumber(double real, double imaginary)
构造一个实部为real 、虚部为imaginary 的复数。
double QOpcUaDoubleComplexNumber::imaginary() const
返回复数的虚部。
另请参阅 ` setImaginary()`。
double QOpcUaDoubleComplexNumber::real() const
返回复数的实部。
另请参阅 setReal()。
void QOpcUaDoubleComplexNumber::setImaginary(double imaginary)
将复数的虚部设置为imaginary 。
另请参阅 imaginary()。
void QOpcUaDoubleComplexNumber::setReal(double real)
将复数的实部设置为real 。
另请参阅 real()。
QOpcUaDoubleComplexNumber::operator QVariant() const
将该双精度复数转换为QVariant 。
QOpcUaDoubleComplexNumber &QOpcUaDoubleComplexNumber::operator=(const QOpcUaDoubleComplexNumber &rhs)
将rhs 中的值设置为该双精度复数的数值。
bool QOpcUaDoubleComplexNumber::operator==(const QOpcUaDoubleComplexNumber &rhs) const
如果该双精度复数与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.