[Interest] QSqlTableModel remove row

Karl Ruetz karl.ruetz at ruetzdogz.com
Fri Feb 14 22:42:57 CET 2014

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.


On Feb 14, 2014, at 3:59 PM, <igor.mironchik at gmail.com> <igor.mironchik at 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140214/9ee407d5/attachment.html>

More information about the Interest mailing list