PySide6.QtOpcUa.QOpcUaEnumField¶
- class QOpcUaEnumField¶
- The OPC UA StructureDefinition type. More… - Added in version 6.7. - Synopsis¶- Methods¶- def - __init__()
- def - description()
- def - displayName()
- def - name()
- def - __ne__()
- def - __eq__()
- def - setDescription()
- def - setDisplayName()
- def - setName()
- def - setValue()
- def - swap()
- def - value()
 - 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 EnumField type defined in OPC UA part 3. It describes a field of an enum type. - __init__()¶
 - Default constructs an enum field with no parameters set. - __init__(other)
- Parameters:
- other – - QOpcUaEnumField
 
 - Constructs an enum field from - other.- description()¶
- Return type:
 
 - Returns the description of the enum field. - See also - displayName()¶
- Return type:
 
 - Returns the display name of the enum field. - See also - name()¶
- Return type:
- str 
 
 - Returns the name of the enum field. - See also - __ne__(rhs)¶
- Parameters:
- rhs – - QOpcUaEnumField
- Return type:
- bool 
 
 - Returns - trueif- lhsis not equal to- rhs.- __eq__(rhs)¶
- Parameters:
- rhs – - QOpcUaEnumField
- Return type:
- bool 
 
 - Returns - trueif- lhsis equal to- rhs.- setDescription(description)¶
- Parameters:
- description – - QOpcUaLocalizedText
 
 - Sets the description of the enum field to - description.- See also - setDisplayName(displayName)¶
- Parameters:
- displayName – - QOpcUaLocalizedText
 
 - Sets the display name of the enum field to - displayName.- See also - setName(name)¶
- Parameters:
- name – str 
 
 - Sets the name of the enum field to - name.- See also - setValue(value)¶
- Parameters:
- value – int 
 
 - Sets the enum value of the enum field to - value.- See also - swap(other)¶
- Parameters:
- other – - QOpcUaEnumField
 
 - Swaps enum field object - otherwith this enum field object. This operation is very fast and never fails.- value()¶
- Return type:
- int 
 
 - Returns the enum value of the enum field. - See also