Details
-
Bug
-
Resolution: Cannot Reproduce
-
P3: Somewhat important
-
4.3.3
-
None
Description
In bug [170783] that caused empty rows to be displayed in a
QTableView when a new model was set on the view. This was caused by
QSqlTableModel emitting the rowsAboutToBeInserted() and rowsInserted()
signals even when the new model was empty.
However, this problem seems to be still exist in QSqlQueryModel (in some cases like sqllite this is the only choice). When the first model returns no rows (a select that return no row) and then the next query returns rows the QTableView shows many empty rows.