QOpcUaEUInformation#
The OPC UA EURange type. More…
Synopsis#
Functions#
def
description
()def
displayName
()def
namespaceUri
()def
__eq__
(rhs)def
setDescription
(description)def
setDisplayName
(displayName)def
setNamespaceUri
(namespaceUri)def
setUnitId
(unitId)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 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.
- class PySide6.QtOpcUa.QOpcUaEUInformation#
PySide6.QtOpcUa.QOpcUaEUInformation(arg__1)
PySide6.QtOpcUa.QOpcUaEUInformation(namespaceUri, unitId, displayName, description)
- Parameters:
unitId – int
arg__1 –
PySide6.QtOpcUa.QOpcUaEUInformation
namespaceUri – str
displayName –
PySide6.QtOpcUa.QOpcUaLocalizedText
description –
PySide6.QtOpcUa.QOpcUaLocalizedText
Default constructs an EU information with no parameters set.
Constructs a EUinformation from rhs
.
Constructs a EUinformation with namespace URI namespaceUri
, unit id unitId
, display name displayName
and description description
.
- PySide6.QtOpcUa.QOpcUaEUInformation.description()#
- Return type:
Returns the description of the unit, for example degree Celsius.
See also
- PySide6.QtOpcUa.QOpcUaEUInformation.displayName()#
- Return type:
Returns the display name of the unit, for example °C.
See also
- PySide6.QtOpcUa.QOpcUaEUInformation.namespaceUri()#
- Return type:
str
Returns the namespace URI of the unit.
See also
- PySide6.QtOpcUa.QOpcUaEUInformation.__eq__(rhs)#
- Parameters:
- Return type:
bool
Returns true
if this EUinformation has the same value as rhs
.
- PySide6.QtOpcUa.QOpcUaEUInformation.setDescription(description)#
- Parameters:
description –
PySide6.QtOpcUa.QOpcUaLocalizedText
Sets the description if the unit to description
.
See also
- PySide6.QtOpcUa.QOpcUaEUInformation.setDisplayName(displayName)#
- Parameters:
displayName –
PySide6.QtOpcUa.QOpcUaLocalizedText
Sets the display name of the unit to displayName
.
See also
- PySide6.QtOpcUa.QOpcUaEUInformation.setNamespaceUri(namespaceUri)#
- Parameters:
namespaceUri – str
Sets the namespace URI of the unit to namespaceUri
.
See also
- PySide6.QtOpcUa.QOpcUaEUInformation.setUnitId(unitId)#
- Parameters:
unitId – int
Sets the machine-readable identifier for the unit to unitId
.
See also
- PySide6.QtOpcUa.QOpcUaEUInformation.unitId()#
- Return type:
int
Returns the machine-readable identifier for the unit.
See also