PDA

View Full Version : QSqlQueryModel fetchMore



skuda
17th July 2008, 20:42
Hello,
i have been using a odbc driver with QSqlQueryModel without problems until the last week that i have changed to QPSQL driver to use postgresql, i was using Maxdb with ODBC driver, well i have many large querys loaded in QTableView with QSqlQueryModel, i thought that load on scrollbar was a feature (canFetchMore, fetchMore) and now that i am waiting 2 minutes (at 100% cpu) to see my tableviews populate with data i have found in the QSqlQueryModel documentation that it is only a workaround to work with sql drivers that not return the number of rows, i would like to get the same effect (or alike) with postgresql, any good way to do it? i have found http://blog.wysota.eu.org/index.php/2006/12/26/remote-models but it is from 2006, do we have a better integrated qt solution now?


Best Regards,
Miguel Angel.