'Get the data from the widget state and set/update the model at index.'

def setModelData(self, widget, index):

    params = widget.parameters()
    assert isinstance(params, dict)
    self._model.setData(index, params, ParametersRole)
