Answer the question
In order to leave comments, you need to log in
How to remove from tableWidget on double click?
Hello, you need to double-click on an entry to delete it from tableWidget
, there is such a piece of code:
void reportHelp::on_tableWidget_itemDoubleClicked(QTableWidgetItem *item)
{
int i= ui->tableWidget->selectionModel()->selectedRows().count();
ui->tableWidget->removeRow(i);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question