PySide6.QtOpcUa.QOpcUaLocalizedText¶
- class QOpcUaLocalizedText¶
The OPC UA LocalizedText type. More…
Synopsis¶
Properties¶
Methods¶
def
__init__()
def
locale()
def
__eq__()
def
setLocale()
def
setText()
def
text()
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.
- __init__()¶
Default constructs a localized text with no parameters set.
- __init__(arg__1)
- Parameters:
arg__1 –
QOpcUaLocalizedText
Constructs a localized text from
rhs
.- __init__(locale, text)
- Parameters:
locale – str
text – str
Constructs a localized text with the locale
locale
and the texttext
.- locale()¶
- Return type:
str
Returns the locale.
See also
Getter of property
localeᅟ
.- __eq__(rhs)¶
- Parameters:
rhs –
QOpcUaLocalizedText
- Return type:
bool
Returns
true
if this localized text has the same value asrhs
.- setLocale(locale)¶
- Parameters:
locale – str
Sets the locale to
locale
.See also
Setter of property
localeᅟ
.- setText(text)¶
- Parameters:
text – str
Sets the text to
text
.See also
Setter of property
textᅟ
.- text()¶
- Return type:
str
Returns the text.
See also
Getter of property
textᅟ
.