PDA

View Full Version : Saving/Restoring columns order of QTreeWidget



mchara
10th October 2007, 09:26
Hi, i'm saving a qlist with columns order of tree widget(logical index of a column is a key, and visual index is a value), but when i trying to read it back and set the columns order as it was in previous session it changes order but not as it should. I found only swapSections & moveSections methods in QHeaderView, but when i have about 20 columns i can't figure it out what should I swap with what.
Can anybody help?

jpn
10th October 2007, 09:43
See QHeaderView::saveState() and QHeaderView::restoreState(). :)