QOpcUaEUInformation Class
El tipo EURange de OPC UA. Más información...
| Encabezado: | #include <QOpcUaEUInformation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funciones públicas
| QOpcUaEUInformation() | |
| QOpcUaEUInformation(const QString &namespaceUri, qint32 unitId, const QOpcUaLocalizedText &displayName, const QOpcUaLocalizedText &description) | |
| QOpcUaEUInformation(const QOpcUaEUInformation &rhs) | |
| QOpcUaLocalizedText | description() const |
| QOpcUaLocalizedText | displayName() const |
| QString | namespaceUri() const |
| void | setDescription(const QOpcUaLocalizedText &description) |
| void | setDisplayName(const QOpcUaLocalizedText &displayName) |
| void | setNamespaceUri(const QString &namespaceUri) |
| void | setUnitId(qint32 unitId) |
| qint32 | unitId() const |
| operator QVariant() const | |
| QOpcUaEUInformation & | operator=(const QOpcUaEUInformation &rhs) |
| bool | operator==(const QOpcUaEUInformation &rhs) const |
Descripción detallada
Esta es la representación de « Qt OPC UA » para el tipo EUInformation de OPC UA definido en OPC UA 1.05, parte 8, apartado 5.6.3. Los valores de EUInformation contienen información sobre unidades y se utilizan principalmente como propiedad de un nodo con un atributo de valor numérico. La información puede utilizarse, por ejemplo, para añadir texto e información sobre herramientas a los elementos de la interfaz gráfica de usuario.
Documentación de las funciones de miembro
QOpcUaEUInformation::QOpcUaEUInformation()
«Default» crea un objeto de información de la UE sin parámetros definidos.
QOpcUaEUInformation::QOpcUaEUInformation(const QString &namespaceUri, qint32 unitId, const QOpcUaLocalizedText &displayName, const QOpcUaLocalizedText &description)
Crea un objeto «EUinformation» con el URI del espacio de nombres namespaceUri, el identificador de unidad unitId, el nombre para mostrar displayName y la descripción description.
QOpcUaEUInformation::QOpcUaEUInformation(const QOpcUaEUInformation &rhs)
Genera una ficha informativa de la UE a partir de rhs.
QOpcUaLocalizedText QOpcUaEUInformation::description() const
Devuelve la descripción de la unidad, por ejemplo, grados Celsius.
Véase también setDescription().
QOpcUaLocalizedText QOpcUaEUInformation::displayName() const
Devuelve el nombre que se muestra de la unidad, por ejemplo, °C.
Véase también setDisplayName().
QString QOpcUaEUInformation::namespaceUri() const
Devuelve el URI del espacio de nombres de la unidad.
Véase también setNamespaceUri().
void QOpcUaEUInformation::setDescription(const QOpcUaLocalizedText &description)
Establece la descripción de la unidad en « description ».
Véase también description().
void QOpcUaEUInformation::setDisplayName(const QOpcUaLocalizedText &displayName)
Establece el nombre que se muestra de la unidad como « displayName ».
Véase también displayName().
void QOpcUaEUInformation::setNamespaceUri(const QString &namespaceUri)
Establece el URI del espacio de nombres de la unidad en namespaceUri.
Véase también namespaceUri().
void QOpcUaEUInformation::setUnitId(qint32 unitId)
Establece el identificador legible por máquina de la unidad en unitId.
Véase también unitId().
qint32 QOpcUaEUInformation::unitId() const
Devuelve el identificador legible por máquina de la unidad.
Véase también setUnitId().
QOpcUaEUInformation::operator QVariant() const
Convierte esta información de la UE en QVariant.
QOpcUaEUInformation &QOpcUaEUInformation::operator=(const QOpcUaEUInformation &rhs)
Establece los valores de rhs en esta EUinformation.
bool QOpcUaEUInformation::operator==(const QOpcUaEUInformation &rhs) const
Devuelve « true » si esta información de la UE 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.