The OPC UA LocalizedText type. More...
| Header: | #include <QOpcUaLocalizedText> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa)target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| 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 |
| QVariant | operator QVariant() const |
| QOpcUaLocalizedText & | operator=(const QOpcUaLocalizedText &rhs) |
| bool | operator==(const QOpcUaLocalizedText &rhs) const |
(since 6.3) QDebug |
operator<<(QDebug debug, const QOpcUaLocalizedText &text) |
This is the Qt OPC UA representation for the OPC UA LocalizedText type defined in OPC UA 1.05 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 1.05 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.
Locale of the contained text. This has to be in a modified ISO standard notation, for example en-US. See OPC UA specification 1.05 part 3, 8.4 for details.
Access functions:
Textual content.
Access functions:
Default constructs a localized text with no parameters set.
Constructs a localized text with the locale locale and the text text.
Constructs a localized text from rhs.
Returns the locale.
Note: Getter function for property locale.
See also setLocale().
Sets the locale to locale.
Note: Setter function for property locale.
See also locale().
Sets the text to text.
Note: Setter function for property text.
See also text().
Returns the text.
Note: Getter function for property text.
See also setText().
Converts this localized text to QVariant.
Sets the values from rhs in this localized text.
Returns true if this localized text has the same value as rhs.
[since 6.3] QDebug operator<<(QDebug debug, const QOpcUaLocalizedText
&text)Writes the localized text to the debug output.
This function was introduced in Qt 6.3.
See also QDebug.