[Interest] Updating view after cached sql delete

Knut Krause knut.krause at lagom.de
Fri Dec 13 22:47:18 CET 2013


I'm showing my QSqlTableModel in a QTableView. I've set the submit policy to 
ManualSubmit. If I delete a row from my model the view keeps a blank row with 
an exclamation mark as index. Can I somehow remove this row?

I tried

connect(model, SIGNAL(beforeDelete(int)), view, SLOT(hideColumn(int)));

but this doesn't seem to work. How would you do this?



More information about the Interest mailing list