PDA

View Full Version : problem with QTable Widget



navi1084
23rd September 2008, 05:44
Hi,
I placed a QTableWidget in my application. It will add all the items to the tabel and table has column header. whenever I add a item, a index for the item is showned in QTableWidget which is the default behaviour. But whenever i clear the QTableWidget (by calling clear()), this will delete the items , but not count. That is it will clear the item , but index numbers will be showed in the teblewidget. how can I clear that index. i.e how can clear raw count to 0.

Thank You

yuriry
23rd September 2008, 06:09
Would setRowCount()/setColumnCount() do the work for you?