[Qt-interest] Model/View delayed loading for large datasets
william.crocker at analog.com
william.crocker at analog.com
Wed Feb 3 14:53:18 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?
>
Did you set:
void setUniformItemSizes(true)
> On Mon, Feb 1, 2010 at 3:55 PM, Brad Howes <howes at ll.mit.edu
> <mailto: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 <mailto:Qt-interest at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list