QOpcUaLocalizedText Class
El tipo de texto localizado OPC UA LocalizedText. Más...
| Cabecera: | #include <QOpcUaLocalizedText> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa)target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Propiedades
Funciones públicas
| 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 |
Relacionados No Miembros
(since 6.3) QDebug | operator<<(QDebug debug, const QOpcUaLocalizedText &text) |
Descripción detallada
Esta es la representación Qt OPC UA para el tipo OPC UA LocalizedText definido en OPC UA 1.05 parte 3, 8.5. Un valor LocalizedText contiene una cadena de texto con información de configuración regional asociada en una segunda cadena (por ejemplo, "en" o "en-US"). El formato de la cadena de información de configuración regional es <idioma>[-<país/región>]. El idioma suele indicarse con un código de dos letras ISO 639, y el país/región con un código de dos letras ISO 3166. También se permiten códigos personalizados (véase OPC UA 1.05 parte 3, 8.4). Puede utilizarse para proporcionar múltiples cadenas de texto en diferentes idiomas para un valor utilizando una matriz de elementos LocalizedText.
Documentación de la propiedad
locale : QString
Configuración regional del texto contenido. Tiene que estar en una notación estándar ISO modificada, por ejemplo en-US. Véase la especificación OPC UA 1.05 parte 3, 8.4 para más detalles.
Funciones de acceso:
text : QString
Contenido textual.
Funciones de acceso:
Documentación de las funciones miembro
QOpcUaLocalizedText::QOpcUaLocalizedText()
Por defecto construye un texto localizado sin parámetros.
QOpcUaLocalizedText::QOpcUaLocalizedText(const QString &locale, const QString &text)
Construye un texto localizado con la configuración regional locale y el texto text.
QOpcUaLocalizedText::QOpcUaLocalizedText(const QOpcUaLocalizedText &rhs)
Construye un texto localizado a partir de rhs.
QString QOpcUaLocalizedText::locale() const
Devuelve la configuración regional.
Nota: Función Getter para la propiedad locale.
Véase también setLocale().
void QOpcUaLocalizedText::setLocale(const QString &locale)
Establece la configuración regional en locale.
Nota: Función Setter para la propiedad locale.
Véase también locale().
void QOpcUaLocalizedText::setText(const QString &text)
Establece el texto en text.
Nota: Función Setter para la propiedad text.
Véase también text().
QString QOpcUaLocalizedText::text() const
Devuelve el texto.
Nota: Función Getter para la propiedad texto.
Véase también setText().
QOpcUaLocalizedText::operator QVariant() const
Convierte este texto localizado a QVariant.
QOpcUaLocalizedText &QOpcUaLocalizedText::operator=(const QOpcUaLocalizedText &rhs)
Establece los valores de rhs en este texto localizado.
bool QOpcUaLocalizedText::operator==(const QOpcUaLocalizedText &rhs) const
Devuelve true si este texto localizado tiene el mismo valor que rhs.
Relacionados No miembros
[since 6.3] QDebug operator<<(QDebug debug, const QOpcUaLocalizedText &text)
Escribe la dirección text localizada en la salida debug.
Esta función se introdujo en Qt 6.3.
Véase también 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.