thanks very much caduel! QAbstractItemModel::reset() solves the problem.