Results 1 to 2 of 2

Thread: sizeHints for QSortFilterProxyModel

  1. #1
    Join Date
    Mar 2011
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default sizeHints for QSortFilterProxyModel

    Hi, everyone,

    The sizeHint method isn't documented for QSortFilterProxyModel. It accepts a column, and it's being called, but it isn't clear to me whether the column is a column in the source model or a column in the proxy model. Other methods in this class where the column is provided (filterAcceptsColumn, for example) uses the source column. I would expect this to be consistent, but I'm also having all sorts of problems getting my column widths working properly.

    The QSortFilterProxyModel doesn't appear to provide the ability to map a column to the source, so I think I have to assume this is already a source column. I had the idea of mapping a model index to the source where I've set the column to the input and used row 0, but that won't work if the source doesn't have any rows.

    Can anyone clarify this?

    Thanks,
    Doug

  2. #2
    Join Date
    Mar 2011
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: sizeHints for QSortFilterProxyModel

    I'm an idiot. sizeHint in this instance is my own addition, and I'd forgotten that. Please disregard.

Similar Threads

  1. SizeHints and Policies
    By QT8seven in forum Newbie
    Replies: 5
    Last Post: 7th December 2011, 06:52
  2. Qsortfilterproxymodel
    By migel in forum Newbie
    Replies: 1
    Last Post: 3rd October 2011, 16:40
  3. Using QSortFilterProxyModel
    By Jennie Bystrom in forum Qt Programming
    Replies: 3
    Last Post: 6th December 2007, 10:28
  4. QSortFilterProxyModel
    By evgenM in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2007, 11:53

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.