I have QGraphicsScene with QGraphicsItem-s. Now I need add animated images to some items. I created aniGIFs but don't see how to "attach" them to items. There is a way to show animated GIFs via QLabel with QMovie inside. But QLabel requires QWidget at least to define where to draw QLabel. I do not have any QWidget inside scene. QWidget and QGraphicsItem are independent drawing essences. They cannot mix. I tried inherit from both classes but got lots of errors even after MOC compiler.
How can I solve this? How animated GIF can be better placed on QGraphicsScene? Can this work if I create QWidget inside paint() event of my QGraphicsItem? Or there is any other lightweight way?
Bookmarks