[Interest] Issue with QSqlModel and QSortFilterModel

Scott Bloom scott at towel42.com
Wed Apr 17 23:40:02 CEST 2019

I have a source model, which is QSqlModel based, and a filter proxy model.

Its not possible to make the filter part of the SQL query.. been down that road...

The problem is, since the QSqlModel is quite large, we cant do a "keep fetching till you can no longer fetch" as it would take almost 30 seconds to load the whole DB.

But, if the filter, doesn't find something in the first "batch" there is no way to call the next fetch (which is usually triggered by the scrollbar

Any thoughts?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190417/7f34c933/attachment.html>

More information about the Interest mailing list