Results 1 to 6 of 6

Thread: QAbstractProxyModel and QTreeView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    105
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 2 Times in 2 Posts

    Default Re: QAbstractProxyModel and QTreeView

    thanks, QSortFilterProxyModel works.

    However I don't understand why my proxy didn't...

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

    Default Re: QAbstractProxyModel and QTreeView

    Notice that every QModelIndex belongs to a certain model. The view doesn't know there's proxy model in between. Besides other possible logical mistakes, the view only sees a model which returns indexes belonging to some other unknown model.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    niko (18th January 2008)

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
  •  
Qt is a trademark of The Qt Company.