In questa pagina

QOpcUaEUInformation Class

Il tipo EURange di OPC UA. Maggiori informazioni...

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

Funzioni pubbliche

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

Descrizione dettagliata

Questa è la rappresentazione in formato " Qt OPC UA " per il tipo OPC UA EUInformation definito nella specifica OPC UA 1.05, parte 8, sezione 5.6.3. I valori EUInformation contengono informazioni relative alle unità di misura e vengono utilizzati principalmente come proprietà di un nodo con un attributo di valore numerico. Tali informazioni possono essere utilizzate, ad esempio, per aggiungere testo e tooltip agli elementi dell'interfaccia grafica (GUI).

Documentazione delle funzioni membro

QOpcUaEUInformation::QOpcUaEUInformation()

Il valore predefinito crea un oggetto "Informazioni UE" senza parametri specificati.

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

Crea un oggetto EUinformation con URI dello spazio dei nomi namespaceUri, ID unità unitId, nome visualizzato displayName e descrizione description.

QOpcUaEUInformation::QOpcUaEUInformation(const QOpcUaEUInformation &rhs)

Crea un oggetto EUinformation da rhs.

QOpcUaLocalizedText QOpcUaEUInformation::description() const

Restituisce la descrizione dell'unità, ad esempio " grado Celsius".

Vedi anche setDescription().

QOpcUaLocalizedText QOpcUaEUInformation::displayName() const

Restituisce il nome visualizzato dell'unità, ad esempio °C.

Vedi anche setDisplayName().

QString QOpcUaEUInformation::namespaceUri() const

Restituisce l'URI dello spazio dei nomi dell'unità.

Vedi anche setNamespaceUri().

void QOpcUaEUInformation::setDescription(const QOpcUaLocalizedText &description)

Imposta la descrizione dell'unità su description.

Vedi anche description().

void QOpcUaEUInformation::setDisplayName(const QOpcUaLocalizedText &displayName)

Imposta il nome visualizzato dell'unità su displayName.

Vedi anche displayName().

void QOpcUaEUInformation::setNamespaceUri(const QString &namespaceUri)

Imposta l'URI dello spazio dei nomi dell'unità su namespaceUri.

Vedi anche namespaceUri().

void QOpcUaEUInformation::setUnitId(qint32 unitId)

Imposta l'identificatore leggibile dal sistema per l'unità su unitId.

Vedi anche unitId().

qint32 QOpcUaEUInformation::unitId() const

Restituisce l'identificatore leggibile dal computer relativo all'unità.

Vedi anche setUnitId().

QOpcUaEUInformation::operator QVariant() const

Converte queste informazioni sull'UE in QVariant.

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

Imposta i valori riportati all’indirizzo rhs in questa pagina EUinformation.

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

Restituisce " true " se questa informazione UE ha lo stesso valore di " 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.