[Qt-interest] Model passes modeltest but proxy does not

Stephen Kelly steveire at gmail.com
Thu Dec 18 21:30:54 CET 2008


Hi,

In KDE/Akonadi we have a custom CollectionModel which passes modeltest.
However, when I put any proxy model in front of it, it fails modeltest. I
forked the model and put it here:

http://websvn.kde.org/trunk/playground/pim/proxymodeltest/

More information here:

http://thread.gmane.org/gmane.comp.kde.devel.general/55936

As the debug output attached there shows, when the model is standalone,
rowsAboutToBeInserted is called before the rows are inserted. However when
run through the model, it is called after the items have been inserted.

The rest of the details are here:
http://labs.trolltech.com/forums/topic/416?replies=1

I don't know if this is a limitation or a bug in modeltest, or
QAbstractProxyModel, or CollectionModel. 

Any idea?

Thanks,

Steve.





More information about the Qt-interest-old mailing list