PySide6.QtOpcUa.QOpcUaEnumDefinition

class QOpcUaEnumDefinition

The OPC UA EnumDefinition type. More

Added in version 6.7.

Synopsis

Methods

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:

otherQOpcUaEnumDefinition

Constructs an enum definition from other.

fields()
Return type:

.list of QOpcUaEnumField

Returns the fields of the enum type.

See also

setFields()

__ne__(rhs)
Parameters:

rhsQOpcUaEnumDefinition

Return type:

bool

Returns true if lhs is not equal to rhs.

__eq__(rhs)
Parameters:

rhsQOpcUaEnumDefinition

Return type:

bool

Returns true if lhs is equal to rhs.

setFields(fields)
Parameters:

fields – .list of QOpcUaEnumField

Sets the fields of the enum type to fields.

See also

fields()

swap(other)
Parameters:

otherQOpcUaEnumDefinition

Swaps enum definition object other with this enum definition object. This operation is very fast and never fails.