When or how to use fetchMore() on QSqlTableModel with a SQLite database for rowCount() to work?
问题 My class DataTable is derived from QAbstractTableModel. It uses a QSqlTableModel object internally to fetch data from a db table. It represents a record for every row in the db (it does more but the record count is always the number of rows in the db table). With MySql, my DataTable::rowCount() implementation just calls rowCount() on the QSqlTableModel, which works nicely. Now with SQLite, Qt's SQLite driver returns a row count of 256 if there are more than 256 rows in the db table, so my