- class QOpcUaEUInformation¶
The OPC UA EURange type. More…
Synopsis¶
Methods¶
def
__init__()
def
description()
def
displayName()
def
namespaceUri()
def
__eq__()
def
setDescription()
def
setDisplayName()
def
setUnitId()
def
unitId()
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 EUInformation type defined in OPC UA 1.05 part 8, 5.6.3. EUInformation values contain information about units and are mostly used as property of a node with a numeric value attribute. The information can e. g. be used to add text and tooltips to GUI elements.
- __init__()¶
Default constructs an EU information with no parameters set.
- __init__(arg__1)
- Parameters:
arg__1 –
QOpcUaEUInformation
Constructs a EUinformation from
rhs
.- __init__(namespaceUri, unitId, displayName, description)
- Parameters:
namespaceUri – str
unitId – int
displayName –
QOpcUaLocalizedText
description –
QOpcUaLocalizedText
Constructs a EUinformation with namespace URI
namespaceUri
, unit idunitId
, display namedisplayName
and descriptiondescription
.- description()¶
- Return type:
Returns the description of the unit, for example degree Celsius.
See also
- displayName()¶
- Return type:
Returns the display name of the unit, for example °C.
See also
- namespaceUri()¶
- Return type:
str
Returns the namespace URI of the unit.
See also
- __eq__(rhs)¶
- Parameters:
rhs –
QOpcUaEUInformation
- Return type:
bool
Returns
true
if this EUinformation has the same value asrhs
.- setDescription(description)¶
- Parameters:
description –
QOpcUaLocalizedText
Sets the description if the unit to
description
.See also
- setDisplayName(displayName)¶
- Parameters:
displayName –
QOpcUaLocalizedText
Sets the display name of the unit to
displayName
.See also
- setNamespaceUri(namespaceUri)¶
- Parameters:
namespaceUri – str
Sets the namespace URI of the unit to
namespaceUri
.See also
- setUnitId(unitId)¶
- Parameters:
unitId – int
Sets the machine-readable identifier for the unit to
unitId
.See also
- unitId()¶
- Return type:
int
Returns the machine-readable identifier for the unit.
See also