PDA

View Full Version : how remove a cell in qtableview



breakthecode
6th December 2011, 18:24
if there is 4 cell, i want to remove cell no.2 and again reorder cells 1-3 , in qtableview

before

1 red
2 blue
3 green
4 yellow

after removal of 2rd cell

1 red
2 green
3 yellow

i tried 'hiderow' function but the table numbering is going wrong but qtablewidget had this 'removerow' function. is there any way to do this

Oleg
6th December 2011, 18:30
You should manipulate data in corresponding model. QTableWidget has internal model already.