Re: [Interest] QSqlTableModel remove row

2014-02-16 Thread Oscar Kuchuk
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.

Re: [Interest] QSqlTableModel remove row

2014-02-15 Thread Mark Brand
> On Feb 14, 2014, at 3:59 PM, > > 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

Re: [Interest] QSqlTableModel remove row

2014-02-14 Thread Karl Ruetz
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, wrote: > Hi. > > How to correctly remove row from QSqlTableModel? > > I’ve u

[Interest] QSqlTableModel remove row

2014-02-14 Thread igor.mironchik
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...___ I