@kishore_hemmady said in QListWidget delete selected item:
for(int i=ui->listWidget->model()->rowCount()-1;i>=0;--i){ if(ui->listWidget->model()->index(i,0).data(Qt::CheckStateRole).toInt()==Qt::Checked) ui->listWidgetMy->model()->removeRow(i); }how can i achieve this by selecting the check Box rather than selecting the list content?