Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.4.3
-
None
Description
I have the SVG image with animation. I used several QGraphicsSvgItems and one renderer. So I invoked setSharedRenderer() method.
I expected to see the animation on all my QGraphicsViews. But there was no animation.
Here is the suggested fix:
— qgraphicssvgitem.cpp 2008-09-11 18:33:40.000000000 +0300
+++ qgraphicssvgitem.fix.cpp 2008-11-07 15:34:31.000000000 +0200
@@ -341,6 +341,8 @@
d->renderer = renderer;
d->shared = true;
+
+ connect(renderer, SIGNAL(repaintNeeded()), this, SLOT(_q_repaintItem()));
d->updateDefaultSize();