class QOpcUaStructureField

The OPC UA StructureField 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 StructureField type defined in OPC UA part 3. It describes a field of a structured type.

__init__(other)
Parameters:

otherQOpcUaStructureField

Constructs a structure field from other.

__init__([valueRank=-1])
Parameters:

valueRank – int

Constructs a structure field with valueRank.

arrayDimensions()
Return type:

.list of quint32

Returns the array dimenstions of the struct field.

dataType()
Return type:

str

Returns the data type node ID of the struct field.

See also

setDataType()

description()
Return type:

QOpcUaLocalizedText

Returns the description of the struct field.

See also

setDescription()

isOptional()
Return type:

bool

Returns true if the struct field is optional.

See also

setIsOptional()

maxStringLength()
Return type:

int

Returns the maximum string length of the struct field.

name()
Return type:

str

Returns the name of the struct field.

See also

setName()

__ne__(rhs)
Parameters:

rhsQOpcUaStructureField

Return type:

bool

Returns true lhs is not equal to rhs.

__eq__(rhs)
Parameters:

rhsQOpcUaStructureField

Return type:

bool

Returns true lhs is equal to rhs.

setArrayDimensions(arrayDimensions)
Parameters:

arrayDimensions – .list of quint32

Sets the array dimensions of the struct field to arrayDimensions.

setDataType(dataTypeId)
Parameters:

dataTypeId – str

Sets the data type node ID of the struct field to dataTypeId.

See also

dataType()

setDescription(description)
Parameters:

descriptionQOpcUaLocalizedText

Sets the description of the struct field to description.

See also

description()

setIsOptional(isOptional)
Parameters:

isOptional – bool

Sets the optional flag of the struct field to isOptional.

See also

isOptional()

setMaxStringLength(maxStringLength)
Parameters:

maxStringLength – int

Sets the maximum string length of the struct field to maxStringLength.

setName(name)
Parameters:

name – str

Sets the name of the struct field to name.

See also

name()

setValueRank(valueRank)
Parameters:

valueRank – int

Sets the value rank of the struct field to valueRank.

See also

valueRank()

swap(other)
Parameters:

otherQOpcUaStructureField

Swaps structure field object other with this structure field object. This operation is very fast and never fails.

valueRank()
Return type:

int

Returns the value rank of the struct field.

See also

setValueRank()