I have another problem, that I try to solve for a while now, but without (real) success.
Let's assume we have QTableView that is populated by QSqlQueryModel data. Now when I change some data inside model, I want to refresh view too. If I do this with running setQuery again, then view does refresh itself, but(!) the whole view also resets itself. This is really annoying if user looks at a long table, and for example has one row selected. When view refreshes, his selection is gone and he must go looking for that particular row again. So I would need to refresh view without resetting the whole thing. How do I do that?
Bookmarks