[Interest] QSqlTableModel remove row
oscarkuchuk at gmail.com
Sat Feb 15 00:07:55 CET 2014
Try delete row from model, view reacts accordingly
El Viernes, 14 de febrero de 2014 15:42:57 Karl Ruetz escribió:
> 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
More information about the Interest