class QOpcUaEnumField#

The OPC UA StructureDefinition type. More

New 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 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:

otherQOpcUaEnumField

Constructs an enum field from other.

description()#
Return type:

QOpcUaLocalizedText

Returns the description of the enum field.

See also

setDescription()

displayName()#
Return type:

QOpcUaLocalizedText

Returns the display name of the enum field.

See also

setDisplayName()

name()#
Return type:

str

Returns the name of the enum field.

See also

setName()

__ne__(rhs)#
Parameters:

rhsQOpcUaEnumField

Return type:

bool

Returns true if lhs is not equal to rhs.

setDescription(description)#
Parameters:

descriptionQOpcUaLocalizedText

Sets the description of the enum field to description.

See also

description()

setDisplayName(displayName)#
Parameters:

displayNameQOpcUaLocalizedText

Sets the display name of the enum field to displayName.

See also

displayName()

setName(name)#
Parameters:

name – str

Sets the name of the enum field to name.

See also

name()

setValue(value)#
Parameters:

value – int

Sets the enum value of the enum field to value.

See also

value()

swap(other)#
Parameters:

otherQOpcUaEnumField

Swaps enum field object other with 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

setValue()