QOpcUaLocalizedText Class The OPC UA LocalizedText type. More...  
 Header:
 #include <QOpcUaLocalizedText> 


 qmake:
 QT += opcua


 List of all members, including inherited members  Properties
  
locale : QString 
text : QString  Public Functions
  
 

QOpcUaLocalizedText(const QString &locale, const QString &text)
 
 

QOpcUaLocalizedText(const QOpcUaLocalizedText &rhs)
 
 QOpcUaLocalizedText &

operator=(const QOpcUaLocalizedText &rhs)
 
 QString 

locale() const
 
 void 

setLocale(const QString &locale)
 
 void 

setText(const QString &text)
 
 QString 

text() const
 
 QVariant 

operator QVariant() const
 
 bool 

operator==(const QOpcUaLocalizedText &rhs) const
  Detailed Description
 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.  Property Documentation 
locale : QString
 Locale of the contained text. This has to be in a modified ISO standard notation, for example en-US. See OPC UA specification part 3, 8.4 for details. Access functions:  
 QString 

locale() const
 
 void 

setLocale(const QString &locale)
  
text : QString
 Textual content. Access functions:  
 QString 

text() const
 
 void 

setText(const QString &text)
   Member Function Documentation 
QOpcUaLocalizedText8b7c:f320:99b9:690f:4595:cd17:293a:c069QOpcUaLocalizedText(const QString &locale, const QString &text)
 Constructs a localized text with the locale locale and the text text. 
QOpcUaLocalizedText8b7c:f320:99b9:690f:4595:cd17:293a:c069QOpcUaLocalizedText(const QOpcUaLocalizedText &rhs)
 Constructs a localized text from rhs. 
QOpcUaLocalizedText &QOpcUaLocalizedText8b7c:f320:99b9:690f:4595:cd17:293a:c069operator=(const QOpcUaLocalizedText &rhs)
 Sets the values from rhs in this localized text. 
QString QOpcUaLocalizedText8b7c:f320:99b9:690f:4595:cd17:293a:c069locale() const
 Returns the locale. Note: Getter function for property locale.  See also setLocale(). 
void QOpcUaLocalizedText8b7c:f320:99b9:690f:4595:cd17:293a:c069setLocale(const QString &locale)
 Sets the locale to locale. Note: Setter function for property locale.  See also locale(). 
void QOpcUaLocalizedText8b7c:f320:99b9:690f:4595:cd17:293a:c069setText(const QString &text)
 Sets the text to text. Note: Setter function for property text.  See also text(). 
QString QOpcUaLocalizedText8b7c:f320:99b9:690f:4595:cd17:293a:c069text() const
 Returns the text. Note: Getter function for property text.  See also setText(). 
QVariant QOpcUaLocalizedText8b7c:f320:99b9:690f:4595:cd17:293a:c069operator QVariant() const
 Converts this localized text to QVariant. 
bool QOpcUaLocalizedText8b7c:f320:99b9:690f:4595:cd17:293a:c069operator==(const QOpcUaLocalizedText &rhs) const
 Returns true if this localized text has the same value as rhs.

    
{'path': 'public/docs/qt~6.1/qopcualocalizedtext.html', 'source': 'DevDocs.IO'}