Results 1 to 10 of 10

Thread: How to create filter effect on QTreeWidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows
    Thanks
    9
    Thanked 27 Times in 27 Posts

    Default Re: How to create filter effect on QTreeWidget

    Quote Originally Posted by harpo
    This is inefficient and I hope to get your opinions on this.
    Sorry but why do you think that its inefficient solution?
    a life without programming is like an empty bottle

  2. #2
    Join Date
    Feb 2006
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: How to create filter effect on QTreeWidget

    Hi, cause I will be dealing with big number of items and to run thru all the items to find the set would be time-consuming. Also, I have a few filters to implement at the same time, so I was hoping to find a way where I can bunch up that list for showing and then hide the rest at 1 shot.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to create filter effect on QTreeWidget

    If you switch from item based to model based approach, you'll be able to use the QSortFilterProxyModel.

  4. #4
    Join Date
    Feb 2006
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to create filter effect on QTreeWidget

    thanks I will try that out.

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.