Results 1 to 3 of 3

Thread: [SOLVED]How to reset a model filter ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to reset a model filter ?

    what about just
    Qt Code:
    1. self.model.setFilter("");
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  2. #2
    Join Date
    Sep 2015
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to reset a model filter ?

    worked, thanks !!

Similar Threads

  1. How to reset model without collapsing tree?
    By neuronet in forum Newbie
    Replies: 13
    Last Post: 22nd February 2015, 17:34
  2. QTreeView expansion after model reset
    By d_stranz in forum Qt Programming
    Replies: 3
    Last Post: 3rd December 2014, 23:42
  3. Replies: 5
    Last Post: 10th March 2011, 20:06
  4. Model/view, apply a filter on model
    By remy_david in forum Qt Programming
    Replies: 4
    Last Post: 4th February 2011, 17:13
  5. Replies: 3
    Last Post: 31st March 2008, 21:23

Tags for this Thread

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.