Qt 6.11 is out! See what's new in the release
blog
How to reload the tableview to reload its data ?
General and Desktop
4
Posts
3
Posters
11.2k
Views
1
Watching
-
Hi i retrieve data from a data base with a model and then it is displayed with a tableview.
i have a button witch delete the selected row from the tableview. When i click on it, the row is deleted from the database but no from the tableview. So witch function can i use to reload the data in the tableview? -
If you are using QSqlQueryModel you should re-set its query using setQuery.
There isn't any function to 'refresh' a QSqlQueryModel.