Is it possible to get the number of records in a table after QtSql.QSqlTableModel.setTable(tableName)
and before QtSql.QSqlTableModel.select()
?
Qt documentation about setTable function says:
Sets the database table on which the model operates to tableName. Does not select data from the table, but fetches its field information.
So these are my questions :) Which field information? Does it contain the number of records? How to access it if necessary? (I would like to display a progress bar while the table is being loaded)