Results 1 to 2 of 2

Thread: Filter Proxy Model to Autoupdate View

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Filter Proxy Model to Autoupdate View

    IMO, you need something like:
    Qt Code:
    1. void MySortFilterProxyModel::setWhitePlayerFilter( const QString& filter )
    2. {
    3. filterPlayerWhite = filter;
    4. QModelIndex topLeft( index( 0, <column> ) );
    5. QModelIndex bottomRight( index( rowCount() - 1, <column> ) );
    6. emit dataChanged( topLeft, bottomRight );
    7. }
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to jacek for this useful post:

    Big Duck (2nd June 2006)

Similar Threads

  1. Model - View Programming doubt.
    By munna in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2006, 13:01
  2. Replies: 6
    Last Post: 20th April 2006, 10:23
  3. Model, view, resize to show all data
    By jcr in forum Qt Programming
    Replies: 2
    Last Post: 17th April 2006, 20:59
  4. Table model / view editing issue
    By Caius Aérobus in forum Qt Programming
    Replies: 9
    Last Post: 7th April 2006, 11:03

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.