QOpcUaEUInformation Class
O tipo EURange do OPC UA. Mais...
| Cabeçalho: | #include <QOpcUaEUInformation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funções 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 |
Descrição detalhada
Esta é a representação do Qt OPC UA para o tipo EUInformation da OPC UA, definido na OPC UA 1.05, parte 8, 5.6.3. Os valores de EUInformation contêm informações sobre unidades e são usados principalmente como propriedade de um nó com um atributo de valor numérico. As informações podem, por exemplo, ser usadas para adicionar texto e dicas de ferramenta a elementos da interface gráfica (GUI).
Documentação das funções de membro
QOpcUaEUInformation::QOpcUaEUInformation()
O `default` cria uma informação da UE sem parâmetros definidos.
QOpcUaEUInformation::QOpcUaEUInformation(const QString &namespaceUri, qint32 unitId, const QOpcUaLocalizedText &displayName, const QOpcUaLocalizedText &description)
Cria um objeto EUinformation com o URI do namespace namespaceUri, o ID da unidade unitId, o nome de exibição displayName e a descrição description.
QOpcUaEUInformation::QOpcUaEUInformation(const QOpcUaEUInformation &rhs)
Gera uma informação da UE a partir de rhs.
QOpcUaLocalizedText QOpcUaEUInformation::description() const
Retorna a descrição da unidade, por exemplo, grau Celsius.
Veja também setDescription().
QOpcUaLocalizedText QOpcUaEUInformation::displayName() const
Retorna o nome de exibição da unidade, por exemplo, °C.
Veja também setDisplayName().
QString QOpcUaEUInformation::namespaceUri() const
Retorna o URI do namespace da unidade.
Veja também setNamespaceUri().
void QOpcUaEUInformation::setDescription(const QOpcUaLocalizedText &description)
Define a descrição da unidade como “ description ”.
Veja também description().
void QOpcUaEUInformation::setDisplayName(const QOpcUaLocalizedText &displayName)
Define o nome de exibição da unidade como “ displayName ”.
Veja também displayName().
void QOpcUaEUInformation::setNamespaceUri(const QString &namespaceUri)
Define o URI do namespace da unidade como namespaceUri.
Veja também namespaceUri().
void QOpcUaEUInformation::setUnitId(qint32 unitId)
Define o identificador legível por máquina da unidade como unitId.
Veja também unitId().
qint32 QOpcUaEUInformation::unitId() const
Retorna o identificador legível por máquina da unidade.
Veja também setUnitId().
QOpcUaEUInformation::operator QVariant() const
Converte esta informação da UE em QVariant.
QOpcUaEUInformation &QOpcUaEUInformation::operator=(const QOpcUaEUInformation &rhs)
Define os valores de rhs nesta EUinformation.
bool QOpcUaEUInformation::operator==(const QOpcUaEUInformation &rhs) const
Retorna ` true ` se essa informação da UE tiver o mesmo 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.