Results 1 to 2 of 2

Thread: [itemView] QHeaderView lose mapping at column insertion

  1. #1
    Join Date
    May 2006
    Posts
    55
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default [itemView] QHeaderView lose mapping at column insertion

    Hi
    When one adds a column in its itemModel the QHeaderView associated to an itemView showing the said model will flatten its logical/visual mapping.
    Say, you have columns A, B, C in your model, and visually you managed to get C, A, B.
    Then when your model gets another column, say D, you get visually :
    A, B, C, D.
    Quite drastical, isn't it ? I waited for C, A, B, D.
    I did not find a report for that. Do you think this is a bug or a feature ?

  2. #2
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Thanks
    55
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: [itemView] QHeaderView lose mapping at column insertion

    Ick... the last time I got into the convoluted mess of inserting and moving sections around in the header (I was trying to use the builtin QSqlRelationalTableModel at the time), I eventually surrendered, and found it much easier and cleaner to write my own model class, rather than try to hack around theirs. YMMV !
    Software Engineer



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.