QTableWidget

Qt Code:
  1. this->setColumnCount(4);
  2. this->setSortingEnabled(true);
To copy to clipboard, switch view to plain text mode 

then display my rows... works fine.
Now when I add

Qt Code:
  1. this->sortItems( 1, Qt::AscendingOrder );
To copy to clipboard, switch view to plain text mode 

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