QOpcUaLocalizedText#

The OPC UA LocalizedText type. More

Inheritance diagram of PySide6.QtOpcUa.QOpcUaLocalizedText

Synopsis#

Functions#

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.

class PySide6.QtOpcUa.QOpcUaLocalizedText#

PySide6.QtOpcUa.QOpcUaLocalizedText(arg__1)

PySide6.QtOpcUa.QOpcUaLocalizedText(locale, text)

Parameters

Constructs a localized text from rhs.

Constructs a localized text with the locale locale and the text text.

PySide6.QtOpcUa.QOpcUaLocalizedText.locale()#
Return type

str

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.

PySide6.QtOpcUa.QOpcUaLocalizedText.__eq__(rhs)#
Parameters

rhsPySide6.QtOpcUa.QOpcUaLocalizedText

Return type

bool

Returns true if this localized text has the same value as rhs.

PySide6.QtOpcUa.QOpcUaLocalizedText.setLocale(locale)#
Parameters

locale – str

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.

PySide6.QtOpcUa.QOpcUaLocalizedText.setText(text)#
Parameters

text – str

Textual content.

PySide6.QtOpcUa.QOpcUaLocalizedText.text()#
Return type

str

Textual content.