[Qt-interest] QAbstractProxyModel methods index, parent, rowCount, columnCount not implemented?
Andre Somers
andre at familiesomers.nl
Wed May 18 12:09:47 CEST 2011
Op Wo, 18 mei, 2011 11:59 am, schreef Stephen Kelly:
>>> It would still be nice if there was a basic
>>> QAbstractDecoratorProxyModel
>>> base class that didn't have all the overhead of the
>>> QSortFilterProxyModel.
>> Not a bad idea, actually. A proxy model that is geared towards giving a
>> 1:1 representation of the underlying data structure, but that allows you
>> to just decorate...
>> I am not sure if it makes much of a difference though. Is the overhead
>> of
>> QSFPM so big?
>>
>> André
>
> It's called QIdentityProxyModel and it's in Qt 4.8.
>
> http://doc.trolltech.com/4.8-snapshot/qidentityproxymodel.html
>
> http://steveire.wordpress.com/2010/08/25/kidentityproxymodel-does-nothing-
> fast/
>
Great, I will port my CheckableProxyModel to use it as soon as Qt 4.8 is out.
André
More information about the Qt-interest-old
mailing list