I Have a qtableWidget and must delete all existing rows when click a button, I am trying as follows, but it only deletes one row at a time
Qt Code:
for (int i = 0; i < ui.tableWidget->rowCount(); i++) ui.tableWidget->removeRow(i);To copy to clipboard, switch view to plain text mode
Bookmarks