[Qt-interest] Model/View delayed loading for large datasets

Andre Somers andre at familiesomers.nl
Wed Feb 3 14:50:59 CET 2010


Jugdish wrote:
> The problem I'm running into is that immediately after requesting the 
> rowCount from the model, the view then asks for every modelIndex up to 
> the maximum row. So if I have the model return 500 for rowCount, I 
> can't figure out how to stop the view from fetching the data for all 
> 500 rows. Any ideas?
That may have to do with not setting the uniformRowHeights property. If 
not set, the view needs to query each item to see how much space is 
needed, and how long the scrollbar needs to become.

André




More information about the Qt-interest-old mailing list