Results 1 to 6 of 6

Thread: QSelectionModel and QSortFilterProxyModel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QSelectionModel and QSortFilterProxyModel

    Since index() and parent() don't do anything yet, you might want to leave their default implementations.

    Your map functions are clearly wrong, since you are calling the respective index() method with a "parent" that doesn't belong to the model.

    The implementations also don't look like they do any structural change, so am wondering why you override them at all.

    Cheers,
    _

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

    anbu01 (18th April 2016)

Similar Threads

  1. QSortFilterProxyModel nothing changes
    By unix7777 in forum Qt Programming
    Replies: 7
    Last Post: 19th August 2012, 08:13
  2. Using QSortFilterProxyModel
    By Jennie Bystrom in forum Qt Programming
    Replies: 3
    Last Post: 6th December 2007, 10:28
  3. QSortFilterProxyModel
    By evgenM in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2007, 11:53

Tags for this Thread

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.