- class QOpcUaStructureField#
The OPC UA StructureField type. More…
New in version 6.7.
Synopsis#
Methods#
def
__init__()
def
dataType()
def
description()
def
isOptional()
def
name()
def
__ne__()
def
setDataType()
def
setDescription()
def
setIsOptional()
def
setName()
def
setValueRank()
def
swap()
def
valueRank()
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__([valueRank=-1])#
- Parameters:
valueRank – int
Constructs a structure field with
valueRank
.- __init__(other)
- Parameters:
other –
QOpcUaStructureField
Constructs a structure field from
other
.- arrayDimensions()#
- Return type:
.list of quint32
Returns the array dimenstions of the struct field.
See also
- dataType()#
- Return type:
str
Returns the data type node ID of the struct field.
See also
- description()#
- Return type:
Returns the description of the struct field.
See also
- isOptional()#
- Return type:
bool
Returns
true
if the struct field is optional.See also
- maxStringLength()#
- Return type:
int
Returns the maximum string length of the struct field.
See also
- name()#
- Return type:
str
Returns the name of the struct field.
See also
- __ne__(rhs)#
- Parameters:
rhs –
QOpcUaStructureField
- Return type:
bool
Returns
true
lhs
is not equal torhs
.- setArrayDimensions(arrayDimensions)#
- Parameters:
arrayDimensions – .list of quint32
Sets the array dimensions of the struct field to
arrayDimensions
.See also
- setDataType(dataTypeId)#
- Parameters:
dataTypeId – str
Sets the data type node ID of the struct field to
dataTypeId
.See also
- setDescription(description)#
- Parameters:
description –
QOpcUaLocalizedText
Sets the description of the struct field to
description
.See also
- setIsOptional(isOptional)#
- Parameters:
isOptional – bool
Sets the optional flag of the struct field to
isOptional
.See also
- setMaxStringLength(maxStringLength)#
- Parameters:
maxStringLength – int
Sets the maximum string length of the struct field to
maxStringLength
.See also
- setName(name)#
- Parameters:
name – str
Sets the name of the struct field to
name
.See also
- setValueRank(valueRank)#
- Parameters:
valueRank – int
Sets the value rank of the struct field to
valueRank
.See also
- swap(other)#
- Parameters:
other –
QOpcUaStructureField
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