Results 1 to 2 of 2

Thread: Saving/Restoring columns order of QTreeWidget

  1. #1
    Join Date
    Sep 2007
    Location
    Szczecin, Poland
    Posts
    153
    Thanks
    7
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Saving/Restoring columns order of QTreeWidget

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Saving/Restoring columns order of QTreeWidget

    J-P Nurmi

Similar Threads

  1. QTreeWidget - preventing columns from being resized.
    By sternocera in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2007, 16:11
  2. QTreeWidget columns
    By xgoan in forum Newbie
    Replies: 3
    Last Post: 27th February 2007, 20:01
  3. Resize QTreeWidget columns to contents
    By FaS in forum Qt Programming
    Replies: 9
    Last Post: 2nd July 2006, 20:48
  4. How to capture resizing of QTreeWidget columns?
    By simk in forum Qt Programming
    Replies: 2
    Last Post: 27th April 2006, 06:10
  5. Changing the order of columns in QTreeView
    By johnny_sparx in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2006, 00:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.