Read more carefully documentation of QAbstractTableModel and QAbstractItemModel!
see QAbstractItemModel::beginInsertRows, QAbstractItemModel::beginRemoveColumns and so on