Results 1 to 2 of 2

Thread: ProxyModel problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Nov 2009
    Posts
    129
    Thanks
    4
    Thanked 29 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: ProxyModel problem

    The constructor for QSortFilterProxyModel doesn’t set the source model; it sets the QObject that owns the proxy model. (You can let that default to null if you will delete the proxy model yourself.) You have to use QSortFilterProxyModel::setSourceModel to set the source model.

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

    waynew (14th February 2010)

Similar Threads

  1. Sharing Selections between Model and ProxyModel
    By mentat in forum Qt Programming
    Replies: 14
    Last Post: 27th January 2010, 17:31
  2. ProxyModel and ItemDelegate work togather?
    By litterflybug in forum Qt Programming
    Replies: 0
    Last Post: 15th December 2009, 02:28
  3. Replies: 2
    Last Post: 6th January 2009, 20:55

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.