Results 1 to 4 of 4

Thread: QSortFilterProxyMode example

  1. #1
    Join Date
    Feb 2006
    Posts
    24
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QSortFilterProxyModel example

    Hi all

    Could someone provide example of using QSortFilterProxyModel. There is a " Sorting model example " provided by QT but it is rather simple.

    Thanks.
    Last edited by prakash; 18th April 2006 at 04:57.

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QSortFilterProxyModel example

    Quote Originally Posted by prakash
    Hi all

    Could someone provide example of using QSortFilterProxyModel. There is a " Sorting model example " provided by QT but it is rather simple.

    Thanks.
    If Qt example simple for you then explain peoples your task
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Feb 2006
    Posts
    24
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QSortFilterProxyMode example

    I am using QTreeWidget as main display which has date and integer data displaying in columns. I would like to sort those columns, but don't know how to do that.

    Thanks.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QSortFilterProxyMode example

    Override
    Qt Code:
    1. virtual bool QTreeWidgetItem::operator< ( const QTreeWidgetItem & other ) const
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

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.