Re: [Interest] how do I load massive table views instantly?

2020-06-10 Thread Constantin Makshin
>> 1) quickly calculate/get the total number of items and return that value >> from rowCount() to let views properly configure their scroll bars; > is that a method one overrides? where is "rowCount()" defined? > do i override it by subclassing QSortFilterProxyModel? Yes, it's one of the pure virt

Re: [Interest] how do I load massive table views instantly?

2020-06-08 Thread Scott Bloom
Message- From: Interest On Behalf Of David M. Cotter Sent: Monday, June 8, 2020 4:43 PM To: interest@qt-project.org Subject: Re: [Interest] how do I load massive table views instantly? right okay so my source model class is QSqlRelationalTableModel, no subclass. does this answer your question

Re: [Interest] how do I load massive table views instantly?

2020-06-08 Thread Scott Bloom
est@qt-project.org Subject: Re: [Interest] how do I load massive table views instantly? right okay so my source model class is QSqlRelationalTableModel, no subclass. does this answer your question? sorry i'm still learning about this stuff. now that you know that, is it easier to answer my origin

Re: [Interest] how do I load massive table views instantly?

2020-06-08 Thread David M. Cotter
right okay so my source model class is QSqlRelationalTableModel, no subclass. does this answer your question? sorry i'm still learning about this stuff. now that you know that, is it easier to answer my original question? > On Jun 8, 2020, at 1:37 PM, Francis Herne wrote: > > On Friday, 5 Ju

Re: [Interest] how do I load massive table views instantly?

2020-06-08 Thread Francis Herne
On Friday, 5 June 2020 17:23:37 BST David M. Cotter wrote: > >>> What table view are you talking about, specifically? > >> > >> QTableView with QSortFilterProxyModel > > > > What is the model _behind_ QSFPM? > > i'm trying to understand your question. i'm not sure what you mean, cuz i'm > not th

Re: [Interest] how do I load massive table views instantly?

2020-06-05 Thread David M. Cotter
>>> What table view are you talking about, specifically? >> QTableView with QSortFilterProxyModel > > What is the model _behind_ QSFPM? i'm trying to understand your question. i'm not sure what you mean, cuz i'm not the SQLite dev what i know is that each song has a couple dozen bits of data (nam

Re: [Interest] how do I load massive table views instantly?

2020-06-05 Thread Giuseppe D'Angelo via Interest
Il 04/06/20 23:31, David M. Cotter ha scritto: What table view are you talking about, specifically? QTableView with QSortFilterProxyModel What is the model _behind_ QSFPM? Does that model support async loading? Note that QSFPM may still need to load the entire source model (didn't check i

Re: [Interest] how do I load massive table views instantly?

2020-06-05 Thread Roland Hughes
On 6/5/20 5:00 AM, interest-requ...@qt-project.org wrote: alternately, if "loading only what you see" is just "how it's done", then can i just set the scroll bar height to be the total height? so CAN still grab the scroll thumb, and drag it to the end, and see the data at the end, without wai

Re: [Interest] how do I load massive table views instantly?

2020-06-04 Thread David M. Cotter
> 1) quickly calculate/get the total number of items and return that value from > rowCount() to let views properly configure their scroll bars; is that a method one overrides? where is "rowCount()" defined? do i override it by subclassing QSortFilterProxyModel? > 2) load data in the background; i

Re: [Interest] how do I load massive table views instantly?

2020-06-04 Thread Constantin Makshin
Here is my idea: 1) quickly calculate/get the total number of items and return that value from rowCount() to let views properly configure their scroll bars; 2) load data in the background; 3) return some placeholder values from data() for items that have not been loaded yet; 4) when a new batch o

Re: [Interest] how do I load massive table views instantly?

2020-06-04 Thread David M. Cotter
> What did you try so far? the other thing tried was showing the table without pre-loading it, but then loading the rest in the background but this has the problem that the user can't then pick up the scroll thumb and drag it to the bottom, because not all the data is loaded. as soon as the use

Re: [Interest] how do I load massive table views instantly?

2020-06-04 Thread David M. Cotter
>> alternately, if "loading only what you see" is just "how it's done", then >> can i just set the scroll bar height to be the total height? so CAN still >> grab the scroll thumb, and drag it to the end, and see the data at the end, >> without waiting for all the unseen data to load? >> i know

Re: [Interest] how do I load massive table views instantly?

2020-06-04 Thread Giuseppe D'Angelo via Interest
Il 04/06/20 21:12, David M. Cotter ha scritto: alternately, if "loading only what you see" is just "how it's done", then can i just set the scroll bar height to be the total height? so CAN still grab the scroll thumb, and drag it to the end, and see the data at the end, without waiting for all

[Interest] how do I load massive table views instantly?

2020-06-04 Thread David M. Cotter
say i have a few "playlists" that are really big, like 200k items, with many columns i'd like to be able to switch to them and have them be instantly loaded. by that i mean the entire list, such that i can take the scroll thumb and drag it to the bottom and see the last item, ie: no "loading b