Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SVG animation in QSvgWidget - Working example?

SVG animation in QSvgWidget - Working example?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt_User72653
    wrote on 9 Mar 2018, 12:57 last edited by
    #1

    Can someone provide a working example of an SVG file that animates in QSvgWidget? I've tried a few different files but can't figure out why they're not working.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 9 Mar 2018, 20:04 last edited by mrjj 3 Nov 2018, 09:47
      #2

      Hi
      As far as i know Qt only supports an lower version/compact spec of SVG and support for animation is
      not supported.

      A 1 Reply Last reply 10 Mar 2018, 18:57
      1
      • M mrjj
        9 Mar 2018, 20:04

        Hi
        As far as i know Qt only supports an lower version/compact spec of SVG and support for animation is
        not supported.

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 10 Mar 2018, 18:57 last edited by
        #3

        @mrjj http://doc.qt.io/qt-5/qsvgrenderer.html#details says animations are supported... have not checked it.

        Qt has to stay free or it will die.

        1 Reply Last reply
        1
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 10 Mar 2018, 22:04 last edited by
          #4

          Hi,

          You should post the code you are using as well as a link to a sample SVG file that you are trying to show.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 11 Mar 2018, 09:52 last edited by
            #5

            Hi
            Oh yes, it seems so. \o/
            All samples i could find, uses CSS and would not animate.

            1 Reply Last reply
            0

            2/5

            9 Mar 2018, 20:04

            • Login

            • Login or register to search.
            2 out of 5
            • First post
              2/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved