migel
5th June 2011, 18:31
QTableWidget
this->setColumnCount(4);
this->setSortingEnabled(true);
then display my rows... works fine.
Now when I add
this->sortItems( 1, Qt::AscendingOrder );
I have garbage in rows, basically no data in 2 and 4 columns.
Same when I remove to sortItems()... and click on header to sort the column
have U seen that before ?
I use setItem() to insert it.
Please help
this->setColumnCount(4);
this->setSortingEnabled(true);
then display my rows... works fine.
Now when I add
this->sortItems( 1, Qt::AscendingOrder );
I have garbage in rows, basically no data in 2 and 4 columns.
Same when I remove to sortItems()... and click on header to sort the column
have U seen that before ?
I use setItem() to insert it.
Please help