I'm trying to implement a insertRow
function (very similar to the overridableinsertRows
).
This is what I've done:
def insertRow(self, row_data, parent=QtCore.QModelIndex()):
self.beginInsertRows(parent, self.rowCount(), self.rowCount())
self.arraydata.append(row_data)
self.endInsertRows()
This doesn't show anything on the QTableView
itself (even though it extends the left scroller).
Where am I wrong?