[Qt-interest] QAbstractProxyModel methods index, parent, rowCount, columnCount not implemented?
Ross Bencina
rossb-lists at audiomulch.com
Wed May 18 09:28:45 CEST 2011
Andre Somers wrote:
> I would like to advise you that you _do_ subclass QSortFilterProxyModel
> instead. It is much easier to work with, even if you don't want sorting
> or filtering. There are no methods to reimplement that are only
> concerned with book keeping.
Yeah.. digging deeper I realise that QAbstractProxyModel doesn't even bridge
the signals from the sourceModel through to to outside.. so it makes more
problems than it solves.
> Some examples of what you want to do:
> http://developer.qt.nokia.com/wiki/QSortFilterProxyModel_subclass_to_add_a_checkbox
> http://developer.qt.nokia.com/forums/viewthread/4788
Thank you, that's really good to know.
It would still be nice if there was a basic QAbstractDecoratorProxyModel
base class that didn't have all the overhead of the QSortFilterProxyModel.
As an alternative I'm also investigating whether I can rejig my item
delegate to do everything I was trying to do with my proxy model.
Thank you
Ross.
More information about the Qt-interest-old
mailing list