QOpcUaLocalizedText#

The OPC UA LocalizedText type. More

Synopsis#

Properties#

Functions#

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 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:

Default constructs a localized text with no parameters set.

Constructs a localized text from rhs.

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

Note

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

property PᅟySide6.QtOpcUa.QOpcUaLocalizedText.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.

Access functions:
property PᅟySide6.QtOpcUa.QOpcUaLocalizedText.text: str#

Textual content.

Access functions:
PySide6.QtOpcUa.QOpcUaLocalizedText.locale()#
Return type:

str

Returns the locale.

See also

setLocale()

Getter of property locale .

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

Sets the locale to locale.

See also

locale()

Setter of property locale .

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

text – str

Sets the text to text.

See also

text()

Setter of property text .

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

str

Returns the text.

See also

setText()

Getter of property text .