Results 1 to 3 of 3

Thread: Subclassing QSortFilterProxyModel

  1. #1
    Join Date
    Jan 2006
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Subclassing QSortFilterProxyModel

    Hi folks!
    I implemented a QSortFilterProxyModel sublcass and i overrode method bool filterAcceptsColumns(int source_column, const QModelIndex &source_parent) const,
    all went well when i compiled my program but this method is never called.
    Have i to override other methods?

    I attached example files...
    Thank you in advance.
    Attached Files Attached Files

  2. #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: Subclassing QSortFilterProxyModel

    It should be filterAcceptsColumn not filterAcceptsColumns.

  3. #3
    Join Date
    Jan 2006
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Subclassing QSortFilterProxyModel

    Oops!
    Thank you!!

Similar Threads

  1. subclassing QHeaderView
    By chemstar in forum Qt Programming
    Replies: 7
    Last Post: 22nd May 2006, 12:34
  2. Problem in SubClassing QTableItem.
    By sumsin in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2006, 10:21
  3. subclassing QApplication
    By nupul in forum Newbie
    Replies: 2
    Last Post: 19th April 2006, 19:29
  4. Subclassing QScrollView
    By sumsin in forum Qt Programming
    Replies: 13
    Last Post: 16th March 2006, 14:20
  5. Subclassing
    By joseph in forum Newbie
    Replies: 1
    Last Post: 25th February 2006, 14:06

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.