[Qt-interest] Hide deleted rows in QSqlTableModel
Thomas Richard
thomas9999 at gmail.com
Sat Nov 28 10:17:15 CET 2009
Hey all,
I noticed that when using a QTreeView with a QSqlTableModel and using the
OnManualSubmit method there's no way to (visually) see if a certain row is
deleted. I found out this seems to be normal behavior as a QTableView would
show a '!' in front of the deleted row.
In the application I'm writing there is a cancel button though which assures
that changes aren't saved. Now the problem is that i would like to hide
deleted rows from the QTreeView so the user can see that the row will be
deleted. This obviously has to happen without a submitAll() call. I found a
way to paint the background of a deleted row red but I still think that's not
sufficient. Is there an easy way to hide the deleted rows?
Thanks
Thomas Richard
More information about the Qt-interest-old
mailing list