C++ (Qt)QTableView *table;int count = table->selectionModel()->selectedRows().count();for( int i = 0; i < count; i++)table->model()->removeRow( table->selectionModel()->selectedRows().at( i).row(), QModelIndex());