PDA

View Full Version : large tables and QSqlTableModel



peter
15th October 2006, 22:18
I was reading a QT3 tutorial that described QDataTable's ability to query for only the records visible on the user's screen. This sounds like a desirable thing when browsing large tables but QDataTable is obsolete in QT4.

Is there any way to achieve this behavior with the Model/View approach in QT4? The documentation seems to indicate the QSqlTableModel->select() will retrieve ALL of the records at once. I'm dealing with tables containing thousands and potentially millions of records and I want to keep my app responsive and limit the load on my database server.

Any suggestions?

Thanks!