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

QSvgWidget - rename the animateColor function to animate

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.15.16, 6.5.6
    • SVG Support
    • None
    • All

    Description

      Many people will say that it is impossible to load animation in QtSvgWidget

      This is because they find that the "animate" function isn't implemented. However, there's an older function called animateColor that works and has similar syntax, but no one uses it because it's deprecared and not supported by web browsers. ex:

      1. The code below works fine in QtSvgWidget but not in web browsers
        <animateColor attributeName="fill"  values="#e2003d;#FDEAEF" dur="1.8s" begin="0s" repeatCount="indefinite"/>
        
      1. The code below works in web browsers, but not in QSvgWidget
        <animate attributeName="fill"  values="#e2003d;#FDEAEF" dur="1.8s" begin="0s" repeatCount="indefinite"/>
        

      As you can see, it's the same code, only the function name has changed.

      Please see the attachments, I added two files there, one works in QSvgWidget and the other in web browsers

      I would be happy if I could use the same file in QSVgWidget and web browsers

      Attachments

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

        Activity

          People

            hatemelkharashy Hatem ElKharashy
            linusklan Krzysztof Guc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes