QOpcUaMultiDimensionalArray#

A container class for multidimensional arrays. More

Inheritance diagram of PySide6.QtOpcUa.QOpcUaMultiDimensionalArray

Synopsis#

Functions#

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 class manages arrays of Qt OPC UA types with associated array dimensions information. It is returned as value when a multidimensional array is received from the server. It can also be used as a write value or as parameter for filters and method calls.

class PySide6.QtOpcUa.QOpcUaMultiDimensionalArray#

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray(valueArray, arrayDimensions)

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray(arrayDimensions)

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray(other)

Parameters:

Constructs a multidimensional array with value value and array dimensions arrayDimensions.

Creates a multidimensional array with preallocated data fitting arrayDimensions.

Constructs a multidimensional array from other.

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.arrayDimensions()#
Return type:

Returns the dimensions of the multidimensional array. The element at position n contains the length of the n-th dimension.

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.arrayIndex(indices)#
Parameters:

indices

Return type:

int

Returns the array index in valueArray() of the element identified by indices. If indices is invalid for the array or if the array’s dimensions don’t match the size of valueArray() , the invalid index -1 is returned.

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.isValid()#
Return type:

bool

Returns true if the multidimensional array is valid

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.__eq__(other)#
Parameters:

otherPySide6.QtOpcUa.QOpcUaMultiDimensionalArray

Return type:

bool

Returns true if this multidimensional array has the same value as other.

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.setArrayDimensions(arrayDimensions)#
Parameters:

arrayDimensions

Sets the dimensions of the multidimensional array to arrayDimensions.

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.setValue(indices, value)#
Parameters:
  • indices

  • value – object

Return type:

bool

Sets the value at position indices to value. Returns true if the value has been successfully set.

See also

value()

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.setValueArray(valueArray)#
Parameters:

valueArray

Sets the value array of the multidimensional array to value.

See also

valueArray()

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.value(indices)#
Parameters:

indices

Return type:

object

Returns the value of the element identified by indices. If the indices are invalid for the array, an empty QVariant is returned.

See also

setValue()

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.valueArray()#
Return type:

Returns the value array of the multidimensional array.

See also

setValueArray()

PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.valueArrayRef()#
Return type:

Returns a reference to the value array of the multidimensional array.