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, <igor.mironc...@gmail.com> 
<igor.mironc...@gmail.com> 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
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to