[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
Where Ncoloumn++ is a quint8 member of the class.
For test i use a simple for
- for(quint8 a=0;a<10;a++)
The problem is with this code the table is empty. I don’t understand why.
I think you need to set the number of columns at some point.
I have something like:
- int column = 10, row = 3;
- for ( int i = 0 ; i < column ; i++)
- for ( int j = 0 ; j < row ; j++ )