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

QSVGRenderer not recognizing valid SVG animation file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.5.1
    • SVG Support
    • None
    • Yep, linked with SVG

      [^svgviewer.pro.user]

       

    Description

      Valid Animated SVG file not recognized as animated in QSVGRenderer.

       

      Example code:

      QString filename = "C:/Users/seanyiu/VideoAd/svgviewer/files/test.svg";

      connect(&renderer, SIGNAL(repaintNeeded()), this, SLOT(svg_repaintNeeded()));
      renderer.load(filename);

      qDebug() << "Animated =" << renderer.animated();

      QDebug Result:

      Animated= false

      Attached SVG file:

      test.svg

       

      It seems like QSVGRenderer accepts only certain kinds of Animated. I did not do a scientific study as to which ones are supported and which are not. The Sample size is just too large. Could it be that you support SMIL V1.0 only ? 

      Attachments

        1. main.cpp
          2 kB
        2. mainwindow.cpp
          6 kB
        3. mainwindow.h
          3 kB
        4. svgview.cpp
          6 kB
        5. svgview.h
          3 kB
        6. svgviewer.pro.user
          14 kB
        7. test.svg
          38 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            seanyiu Sean Yiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes