Does this line
Qt Code:
  1. modelVector->clear();
To copy to clipboard, switch view to plain text mode 
by any chance clear a QList that is used as the internal data structure of a QAbstractItemModel? If so, have a look at QAbstractItemModel::beginResetModel() and QAbstractItemModel::endResetModel().