Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127587 Animated vector graphics in Qt Quick
  3. QTBUG-127592

Research support for additional animations in Qt SVG

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • None
    • SVG Support
    • None
    • All
    • fdb8c6fc0 (dev), 27148ff8d (dev), 08437f5ca (dev), 36a315d9c (dev), 119a934bc (dev), ee3138a16 (dev), d689a5e2a (dev), 8efc3251f (dev)

    Description

      Qt SVG is currently documented to only support static features of SVG, but it does support some simple animations (as is visible in the original example).

      This tasks involves researching how much effort is involved in expanding support for animations in Qt SVG with the QPainter-based backend.

       

      There are several svg elements that can be used for animations in Svg Tiny 1.2:

      • <animate> : Takes a target attribute to animate it
      • <animateTransform> : Animates a svg node transform
      • <animateColor> : Animates color. This property is deprecated because it can be achieved using <animate> element
      • <animateMotion> : Animates a svg node movement following a path
      • <set> : Sets the value of an attribute to the desired value

      Currently Qt Svg supports only <animateTransform> and <animateColor> with a limited implementation. There are alot of non-implemented attributes that are supported in the standard. For example, animation elements can set "xlink:href" attribute that tells the parser which target node to use instead of adding the animation element as a child to another svg node element.

      Additionally, the supported animation elements are added as a style to a QSvgNode which is better handled by an animator class that advances the animation during rendering.

      Attachments

        For Gerrit Dashboard: QTBUG-127592
        # Subject Branch Project Status CR V

        Activity

          People

            hatemelkharashy Hatem ElKharashy
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes