Results 1 to 2 of 2

Thread: How to detect when QSortFilterProxyModel has finished filtering

  1. #1
    Join Date
    Sep 2019
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to detect when QSortFilterProxyModel has finished filtering

    I am in need of some way to tell when filtering has been completed on my model and I'm wondering if there is a reliable way to capture when this occurs so I can call some other function.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to detect when QSortFilterProxyModel has finished filtering

    I would look for the QAbstractItemModel signals modelReset(), dataChanged(), or layoutChanged(). The proxy will probably emit one or more of these signals when the filtering is complete. It depends in some part on how the proxy has been implemented.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. QSortFilterProxyModel fixed string filtering
    By d_stranz in forum Qt Programming
    Replies: 2
    Last Post: 27th May 2018, 21:41
  2. Custom QSortFilterProxyModel for filtering large data
    By ednakram in forum Qt Programming
    Replies: 7
    Last Post: 24th January 2017, 10:26
  3. Find out when filtering is doing in QSortFilterProxyModel
    By alizadeh91 in forum Qt Programming
    Replies: 5
    Last Post: 26th February 2013, 23:00
  4. Replies: 3
    Last Post: 6th June 2011, 14:34
  5. QSortFilterProxyModel not filtering properly
    By freemind in forum Qt Programming
    Replies: 9
    Last Post: 8th August 2010, 02:23

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.