listView->selectionModel()->setCurrentIndex(model->index(model->rowCount()-1, 1), QItemSelectionModel::ClearAndSelect);
listView->selectionModel()->select(model->index(model->rowCount()-1, 1), QItemSelectionModel::ClearAndSelect);
void lineEdit_returnPressed(){ QModelIndex mIndex= listView->currentIndex(); lineEdit->clearFocus(); listView->selectionModel()->select(mIndex, QItemSelectionModel::ClearAndSelect);}
QModelIndex mIndex= listView->currentIndex(); lineEdit->clearFocus(); listView->selectionModel()->select(mIndex, QItemSelectionModel::ClearAndSelect); dataWidgetMapper->setCurrentModelIndex(mIndex);