
Originally Posted by
jano_alex_es
So try "clear"... as far as I remember, it deletes all, even the lines.
It erases all the same, including the column names
there is no other way?
Or how do I put the names in the columns again? (I named the columns using the QTDesigner)
lol
Thanks
I tried this, but the program simply fails (crash) if I try to rename the columns
ui.tableWidget->clear();
ui.tableWidget->horizontalHeaderItem(0)->setText("Name");
ui.tableWidget->horizontalHeaderItem(1)->setText("IP/DNS");
ui.tableWidget->horizontalHeaderItem(2)->setText("Phone");
ui.tableWidget->horizontalHeaderItem(3)->setText("Situation");
ui.tableWidget->clear();
ui.tableWidget->horizontalHeaderItem(0)->setText("Name");
ui.tableWidget->horizontalHeaderItem(1)->setText("IP/DNS");
ui.tableWidget->horizontalHeaderItem(2)->setText("Phone");
ui.tableWidget->horizontalHeaderItem(3)->setText("Situation");
To copy to clipboard, switch view to plain text mode
Bookmarks