Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-135273 Implement lottietoqml tool
  3. QTBUG-135863

lottietoqml: Research ways to do visibility toggling

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • None
    • Lottie
    • None

    Description

      Lottie has a mechanism where a layer is set to exist for a specific time period. We should map this to the visible property in Qt Quick.

      There is some POC work already: https://codereview.qt-project.org/c/qt/qtdeclarative/+/638471 (and the equivalent mapping in Qt Lottie), but a better approach might be to generate a global "frame number animation" which knows the frame rate of the document and lets you query the current frame. Then the visibility could be handled simply with:

      visible: globalFrameAnimation.frame >= startFrame && globalFrameAnimation.frame <= endFrame
      

      This might be useful in other cases as well, since referring to frame numbers is common in Lottie.

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes