[Solved] Add Coloumn to QTableWidgetItem
Hi, i have a QTableWidgetItem and i want add a special header with a data, i want only a header of the table.
So i have made this
- //Show In Table
- ui->table->insertColumn(Ncoloumn);
- ui->table->setHorizontalHeaderItem(Ncoloumn,item);
- Ncoloumn++;
Where Ncoloumn++ is a quint8 member of the class.
For test i use a simple for
- for(quint8 a=0;a<10;a++)
- setTableValue(a);
The problem is with this code the table is empty. I don’t understand why.
2 replies
You must log in to post a reply. Not a member yet? Register here!


