PDA

View Full Version : QTableWidget/RemoveRow



navi1084
28th November 2008, 11:01
Hi,
I have implement the slot for itemSelectionChanged() (onItemChanged())in my widget which contain QTableWidget. Whenever i remove a row using removeRow(index) it calls the slot onItemChanged(). in this slot i am checking the current index. If i delete 0 th row, the current index in onItemChanged() will be 1 as removeRow() calls "onItemChanged()" . But the default selection will be in )th row.
My question is whenever i delete 0th row why current index become 1 and default selection is 0th row.
How can synchronize the both??? means both 0.

Thank You