PDA

View Full Version : Error when populating lazily QListView



Bakuriu
28th October 2009, 13:13
I'm using a custom model class in a QListView.
My model class implements also canFetchMore and fetchMore, so that it should load lazily the data.
But it seems like it is not working properly because every 2-3 or 4 fetchMore I get this error:

StdErr: QTreeView::rowsInserted internal representation of the model has been corrupted, resetting.

Reading that error seems like the model sometimes has to load again all the previous data due to some fact that i don't know...
anyone know a way to avoid this error?

caduel
28th October 2009, 15:42
Your model is buggy. maybe http://labs.trolltech.com/page/Projects/Itemview/Modeltest helps you finding those.

HTH

Bakuriu
29th October 2009, 11:56
Ok I'll try it.

Edit:
I'm working with Python not with C++ so it is useless.
In fact I don't know almost nothing of C++ and looks like Qt doesn't work with it on my pc(it cannot find the headers not even if I put the complete path to them...)