PySide6.QtOpcUa.QOpcUaEnumDefinition¶
- class QOpcUaEnumDefinition¶
- The OPC UA EnumDefinition type. More… - Added in version 6.7. - Synopsis¶- Methods¶- def - __init__()
- def - fields()
- def - __ne__()
- def - __eq__()
- def - setFields()
- def - swap()
 - 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 EnumDefinition type defined in OPC UA part 3. It describes an enumerated type. - __init__()¶
 - Default constructs an enum definition with no parameters set. - __init__(other)
- Parameters:
- other – - QOpcUaEnumDefinition
 
 - Constructs an enum definition from - other.- fields()¶
- Return type:
- .list of QOpcUaEnumField 
 
 - Returns the fields of the enum type. - See also - __ne__(rhs)¶
- Parameters:
- rhs – - QOpcUaEnumDefinition
- Return type:
- bool 
 
 - Returns - trueif- lhsis not equal to- rhs.- __eq__(rhs)¶
- Parameters:
- rhs – - QOpcUaEnumDefinition
- Return type:
- bool 
 
 - Returns - trueif- lhsis equal to- rhs.- setFields(fields)¶
- Parameters:
- fields – .list of QOpcUaEnumField 
 
 - Sets the fields of the enum type to - fields.- See also - swap(other)¶
- Parameters:
- other – - QOpcUaEnumDefinition
 
 - Swaps enum definition object - otherwith this enum definition object. This operation is very fast and never fails.