When using QSqlTableModel model to insert data into the database, Why rowCount function can only return a maximum 256?

The default return data buffer inside, if you ask for more value, adding the following sentence to the front.

    while(model.canFetchMore()){
      model.fetchMore();
    }

The statement will get more records.

Guess you like

Origin www.cnblogs.com/cheungxiongwei/p/10949738.html