[Qt-interest] Model/View delayed loading for large datasets
Jugdish
jugdizh at gmail.com
Wed Feb 3 14:41:52 CET 2010
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?
On Mon, Feb 1, 2010 at 3:55 PM, Brad Howes <howes at ll.mit.edu> wrote:
> Remember, you have control over what Qt thinks is row count. If you know up
> front that there are 3K rows, just say so, but you do not have to load all
> 3K, only enough to fill the view port.
>
> Brad
>
> --
> Brad Howes
> Group 42
> MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
> Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420
>
>
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100203/989be621/attachment.html
More information about the Qt-interest-old
mailing list