Quote Originally Posted by Gopala Krishna View Post
Hmm interesting use case...
As far as i know, the model's data changed signal is supposed to be emitted only if the data changes. In your case not each frame can be regarded as data. Model should only set the right QMovie for the delagate and that delegate should handle its painting as and when requested by the QMovie.

You can use the techniques adopted by QLabel for playing the movie, which is nothing but painting the pixmaps as and when requested by QMovie.
With QLabel, QMovie generates a signal, it's processed and update() is called on QLabel which generates the paintEvent() for QLabel. It seems I do pretty much the same here. Besides, I guess there is no other way to call delegate's paint() but calling model's dataChanged().

What I need is a code excerpt for delegate's paint() that shows a movie.