[Qt-interest] Model/View delayed loading for large datasets
Brad Howes
howes at ll.mit.edu
Mon Feb 1 16:55:40 CET 2010
On Feb 1, 2010, at 10:14 AM, Jugdish wrote:
> I have experimented with canFetchMore() + fetchMore(), but it seems the way these behave is to continually append more and more data as you scroll down, with the scrollbars constantly resizing themselves to reflect to change in row count. In contrast, the behavior I'm after is to have the scrollbars sized correctly at the outset, based on the total number of rows that there *will be*, and fetch the data as the user scrolls around in the viewport. This would allow the user to quickly jump to the end of the results without having to incrementally fetch every single row on the way down. Does this make sense?
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
More information about the Qt-interest-old
mailing list