QSql Model-View: How to keep view in sync with model
Hi,
I would like to do the following:
One part of my application is using QSqlQuery to store datas in a database.
An other part of my application is using QSqlTableModel to view the datas stored in the database.
How can I get the view to be refreshed automatically when datas have been updated in the database (so that the view always show the live content of the database)?
Thank you
Re: QSql Model-View: How to keep view in sync with model
Unless you are using a database that supports notifications (like PostgreSQL), you have to take care about it manually.