Refresh ui / close ui and open it again
General and Desktop
4
Posts
2
Posters
1.0k
Views
1
Watching
-
Hi,
That's a bit vague of a question, how are you doing the add/remove ?
-
I have a window/ui where i can see all datasets of my sqlite database
if i execute for example an insert sql statement by clicking a pushbutton in this window, one dataset will added.
if i want to see this dataset, i have to close this window and open it again.
what i want to do is refresh my window with code
you know what i mean? :)
-
Then you would have to call select on the model. However, you could also use a QSqlTableModel and update the database through it, this would automatically update the corresponding view(s)