Results 1 to 4 of 4

Thread: Filter columns in QAbstractItemModel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Oct 2009
    Location
    Mexico
    Posts
    81
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6
    Thanked 10 Times in 10 Posts

    Default Re: Filter columns in QAbstractItemModel

    QSortFilterProxyModel only filter rows, if you need filter columns the easy way is rewrite the DB query to include ONLY the column you need.

    BTW: QIdentityProxyModel cant sort or filter the data in the model. QIdentityProxyModel is more suitable for transform the data of the source model. transforms like change num of second in a format "mm:ss" convert all the string to upper.
    Last edited by ecanela; 3rd August 2012 at 06:29. Reason: updated contents

Similar Threads

  1. QFileDialog filter
    By wirasto in forum Newbie
    Replies: 12
    Last Post: 20th January 2010, 12:40
  2. Convolution filter
    By toutarrive in forum Qt Programming
    Replies: 5
    Last Post: 21st October 2009, 13:55
  3. QAbstractItemModel: size of columns
    By kima in forum Qt Programming
    Replies: 0
    Last Post: 24th October 2008, 09:16
  4. Replies: 8
    Last Post: 14th August 2008, 15:48
  5. Moving columns/hiding columns in QTreeView
    By yogeshm02 in forum Qt Programming
    Replies: 4
    Last Post: 14th March 2007, 16:22

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.