How to reload the tableview to reload its data ?
-
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.