Hi

given the following problem:

I have a VIEW in a PostgreSQL Database which I want to display in a TableView in a Qt program. So I use a QSqlQueryModel and a QTableView, that far no problem...

But the content of the database can be changed externally and when this happens, the VIEW changes accordingly. But my model is not updated because it is not notified of the change of the database view and therefore the QTableView also doesn't change.

How can I achieve an automatic update of the model on changes in the database?

Thanks
Markus