Sur cette page

QOpcUaEUInformation Class

Le type d'EURange OPC UA. Plus...

En-tête : #include <QOpcUaEUInformation>
CMake : find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake : QT += opcua

Fonctions publiques

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

Description détaillée

Il s'agit de la représentation Qt OPC UA du type OPC UA EUInformation défini dans OPC UA 1.05 partie 8, 5.6.3. Les valeurs EUInformation contiennent des informations sur les unités et sont principalement utilisées comme propriété d'un nœud avec un attribut de valeur numérique. Les informations peuvent par exemple être utilisées pour ajouter du texte et des infobulles aux éléments de l'interface graphique.

Fonction membre Documentation

QOpcUaEUInformation::QOpcUaEUInformation()

Par défaut, une information sur l'UE est construite sans aucun paramètre défini.

QOpcUaEUInformation::QOpcUaEUInformation(const QString &namespaceUri, qint32 unitId, const QOpcUaLocalizedText &displayName, const QOpcUaLocalizedText &description)

Construit une EUinformation avec l'URI de l'espace de noms namespaceUri, l'identifiant de l'unité unitId, le nom d'affichage displayName et la description description.

QOpcUaEUInformation::QOpcUaEUInformation(const QOpcUaEUInformation &rhs)

Construit une EUinformation à partir de rhs.

QOpcUaLocalizedText QOpcUaEUInformation::description() const

Renvoie la description de l'unité, par exemple le degré Celsius.

Voir également setDescription().

QOpcUaLocalizedText QOpcUaEUInformation::displayName() const

Renvoie le nom d'affichage de l'unité, par exemple °C.

Voir aussi setDisplayName().

QString QOpcUaEUInformation::namespaceUri() const

Renvoie l'URI de l'espace de noms de l'unité.

Voir aussi setNamespaceUri().

void QOpcUaEUInformation::setDescription(const QOpcUaLocalizedText &description)

Définit la description de l'unité à description.

Voir aussi description().

void QOpcUaEUInformation::setDisplayName(const QOpcUaLocalizedText &displayName)

Définit le nom d'affichage de l'unité à displayName.

Voir également displayName().

void QOpcUaEUInformation::setNamespaceUri(const QString &namespaceUri)

Définit l'URI de l'espace de noms de l'unité à namespaceUri.

Voir aussi namespaceUri().

void QOpcUaEUInformation::setUnitId(qint32 unitId)

Définit l'identifiant lisible par machine de l'unité à unitId.

Voir aussi unitId().

qint32 QOpcUaEUInformation::unitId() const

Renvoie l'identifiant lisible par machine de l'unité.

Voir aussi setUnitId().

QOpcUaEUInformation::operator QVariant() const

Convertit cette information de l'UE en QVariant.

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

Définit les valeurs de rhs dans cette information de l'UE.

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

Renvoie true si cette information de l'UE a la même valeur 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.