While your answer is correct and solves the problem, a different one appears. The image, a gif, is not animated any more.
Animation worked before when updating was done by reseting the whole view.
Any further ideas?
Thank you.
@raven-worx
Jackpot! Thank you so much for your help!! Finally I did it using QFileSystemWatcher.
Thumbs up for you (if possible?!). :)
Thread marked as solved.
Cheers
@Chris-Kawa thanks, i now see the thing.
I've found example http://doc.qt.io/qt-5/modelview.html#2-5-the-minimal-editing-example but it use QAbstractTableModel and i'm using a QSqlRelationalTableModel instead of QSqlTableModel.
Will it still works for relations ? I can't found an Abstract for RelationalTableModel.