QLocalizedText Class


The OPC UA LocalizedText type More...

Header: #include <QLocalizedText>
qmake: QT += opcua

Public Functions

QLocalizedText(const QString &p_locale, const QString &p_text)
bool operator==(const QLocalizedText &other) const

Public Variables

QString locale
QString text

Detailed Description

The OPC UA LocalizedText type

This is the Qt OPC UA representation for the OPC UA LocalizedText type defined in OPC-UA part 3, 8.5. A LocalizedText value contains a text string with associated locale information in a second string (e. g. "en" or "en-US"). The format of the locale information string is <language>[-<country/region>]. Language is usually given as ISO 639 two letter code, country/region as ISO 3166 two letter code. Custom codes are also allowed (see OPC-UA part 3, 8.4). It can be used to provide multiple text strings in different languages for a value using an array of LocalizedText elements.

Member Function Documentation

QLocalizedText::QLocalizedText(const QString &p_locale, const QString &p_text)

Constructs an instance of QLocalizedText with the locale given in p_locale and the text given in p_text.


Default constructs an instance of QLocalizedText.

bool QLocalizedText::operator==(const QLocalizedText &other) const

Returns true if this QLocalizedText has the same value as other.

Member Variable Documentation

QString QLocalizedText::locale

The locale of the QLocalizedText.

QString QLocalizedText::text

The text string of the QLocalizedText.

© 2017 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.