QOpcUaLocalizedText Class
Il tipo LocalizedText di OPC UA. Maggiori informazioni...
| Intestazione: | #include <QOpcUaLocalizedText> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Proprietà
Funzioni pubbliche
| QOpcUaLocalizedText() | |
| QOpcUaLocalizedText(const QString &locale, const QString &text) | |
| QOpcUaLocalizedText(const QOpcUaLocalizedText &rhs) | |
| QString | locale() const |
| void | setLocale(const QString &locale) |
| void | setText(const QString &text) |
| QString | text() const |
| operator QVariant() const | |
| QOpcUaLocalizedText & | operator=(const QOpcUaLocalizedText &rhs) |
| bool | operator==(const QOpcUaLocalizedText &rhs) const |
Persone non associate correlate
(since 6.3) QDebug | operator<<(QDebug debug, const QOpcUaLocalizedText &text) |
Descrizione dettagliata
Questa è la rappresentazione Qt OPC UA per il tipo OPC UA LocalizedText definito in OPC UA 1.05, parte 3, sezione 8.5. Un valore LocalizedText contiene una stringa di testo con informazioni relative alle impostazioni locali associate in una seconda stringa (ad es. "en" o "en-US"). Il formato della stringa delle informazioni relative alle impostazioni locali è <lingua>[-<paese/regione>]. La lingua è solitamente indicata con il codice a due lettere ISO 639, mentre il paese/regione con il codice a due lettere ISO 3166. Sono ammessi anche codici personalizzati (vedere OPC UA 1.05, parte 3, 8.4). È possibile utilizzarlo per fornire più stringhe di testo in lingue diverse per un valore utilizzando un array di elementi LocalizedText.
Documentazione delle proprietà
locale : QString
Impostazione locale del testo contenuto. Deve essere espressa in una notazione standard ISO modificata, ad esempio en-US. Per ulteriori dettagli, consultare la specifica OPC UA 1.05, parte 3, paragrafo 8.4.
Funzioni di accesso:
text : QString
Contenuto testuale.
Funzioni di accesso:
Documentazione delle funzioni membro
QOpcUaLocalizedText::QOpcUaLocalizedText()
Il valore predefinito genera un testo localizzato senza parametri specificati.
QOpcUaLocalizedText::QOpcUaLocalizedText(const QString &locale, const QString &text)
Crea un testo localizzato utilizzando le impostazioni di lingua locale e il testo text.
QOpcUaLocalizedText::QOpcUaLocalizedText(const QOpcUaLocalizedText &rhs)
Crea un testo localizzato a partire da rhs.
QString QOpcUaLocalizedText::locale() const
Restituisce le impostazioni locali.
Nota: Funzionegetter per la proprietà locale.
Vedi anche setLocale().
void QOpcUaLocalizedText::setLocale(const QString &locale)
Imposta le impostazioni locali su locale.
Nota: funzionesetter per la proprietà locale.
Vedi anche locale().
void QOpcUaLocalizedText::setText(const QString &text)
Imposta il testo su text.
Nota: funzionesetter per la proprietà text.
Vedi anche ` text()`.
QString QOpcUaLocalizedText::text() const
Restituisce il testo.
Nota: funzionegetter per la proprietà text.
Vedi anche setText().
QOpcUaLocalizedText::operator QVariant() const
Converte questo testo localizzato in QVariant.
QOpcUaLocalizedText &QOpcUaLocalizedText::operator=(const QOpcUaLocalizedText &rhs)
Imposta i valori presenti all'indirizzo rhs in questo testo localizzato.
bool QOpcUaLocalizedText::operator==(const QOpcUaLocalizedText &rhs) const
Restituisce " true " se questo testo localizzato ha lo stesso valore di " rhs".
Non membri correlati
[since 6.3] QDebug operator<<(QDebug debug, const QOpcUaLocalizedText &text)
Scrive l'text e localizzato nell'output debug.
Questa funzione è stata introdotta in Qt 6.3.
Vedi anche QDebug.
© 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.