Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
5.15.16, 6.5.6
-
None
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:
- 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"/>
- 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