QTableView defaults to paging? I want all rows at once...
-
If i load a QTableView with a model that has say 100k items in it, i want the scroll bars to immediately reflect that. Currently the scroll bars only reflect a fraction of that, and when i scroll to the bottom, suddenly more data is added and the scroll thumb jumps out from under my mouse. this is... not a pleasant UX.
How do i get the QTableView's scroll bars to correctly represent the size of the data?
update: and wow even worse: if i SORT the data by a column, it only sorts the fraction that's been loaded into the viewer? huh?? it should be sorting the entire dataset, not the tiny bit shown in the view, right?
-
that's helpful. hmm. is there a way to ask "how many pages will be returned" so i can put a progress bar on this
fetchmore
loop? -
Hi,
Any chance you are using a QSqlTableModel ?
-
indeed, it is an SQLTableModel
-
that's helpful. hmm. is there a way to ask "how many pages will be returned" so i can put a progress bar on this
fetchmore
loop? -
I think the quick way would be to do a count query and divide the result by the fetch size.
-
okay but i don't see anything about fetch size? sorry this is all BRAND new to me
-
Based on the implementation, it's currently hardcoded to 255.