0

I have created a model using QSqlTableModel, then created a tablview using QTableView and set the model on it.

I want to update the model and view automatically whenever the database is updated by another program. How can I do that?

ekhumoro
  • 115,249
  • 20
  • 229
  • 336

1 Answers1

1

There's no signal emitted for that currently. You could use a timer to query the last update timestamp and refresh the model data at designated intervals.

mfessenden
  • 598
  • 4
  • 12