One possible way would be to connect the rowsRemoved signal for the model to a slot that calls model.select() or some other function that resets the model and updates the view.
Karl On Feb 14, 2014, at 3:59 PM, <[email protected]> <[email protected]> wrote: > Hi. > > How to correctly remove row from QSqlTableModel? > > I’ve used removeRow() and removeRows() but they are half-worked. They remove > row from the database table and in the view I see that data is gone, but > empty row in the view is still displayed... > _______________________________________________ > Interest mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
