Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3113

QGrapicsSvgItem::setSharedRenderer doesn't connect repaintNeeded() signal with _q_repaintItem() slot

    XMLWordPrintable

Details

    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();

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes