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.8k Views 2 Watching
  • 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 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

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

      aha_1980A 1 Reply Last reply
      1
      • mrjjM mrjj

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

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on 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

            • Login

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