PySide6.QtOpcUa.QOpcUaLocalizedText

class QOpcUaLocalizedText

The OPC UA LocalizedText type. More

Synopsis

Properties

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

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.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property 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 1.05 part 3, 8.4 for details.

Access functions:
property textᅟ: str

Textual content.

Access functions:
__init__()

Default constructs a localized text with no parameters set.

__init__(rhs)
Parameters:

rhsQOpcUaLocalizedText

Constructs a localized text from rhs.

__init__(locale, text)
Parameters:
  • locale – str

  • text – str

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

locale()
Return type:

str

Returns the locale.

See also

setLocale()

Getter of property localeᅟ .

__eq__(rhs)
Parameters:

rhsQOpcUaLocalizedText

Return type:

bool

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

setLocale(locale)
Parameters:

locale – str

Sets the locale to locale.

See also

locale()

Setter of property localeᅟ .

setText(text)
Parameters:

text – str

Sets the text to text.

See also

text()

Setter of property textᅟ .

text()
Return type:

str

Returns the text.

See also

setText()

Getter of property textᅟ .