code: def insertItem(self, index, item):
          
          row = index.row()
          self.beginInsertRows(QtCore.QModelIndex(), row, row)
          self.model.insertRow(row)
          self.endInsertRows()
          self.model.overwriteParam(index.row(), item)
docs: Inserts parameter *item* at index