QModelIndex currentIndex=ui->mytable->selectionModel()->currentIndex();model1->removeRow(currentIndex.row());model1->submitAll();