Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84602

Lottie not play

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.14.2, 5.15.0, 5.15.6, 6.2.0 Beta4
    • Lottie
    • None
    • Linux/X11, macOS, Windows

    Description

      Lottie can see image,can not play。

       

      //main.qml
      import QtQuick 2.12
      import QtQuick.Window 2.12
      import Qt.labs.lottieqt 1.0
      Window {
          visible: true
          width: 800
          height: 600
          title: qsTr("Hello World")
          LottieAnimation {
              id: lottie
              anchors.centerIn: parent
              loops: 100
              quality: LottieAnimation.HighQuality
              source: "23495-yellow-animation.json"
              frameRate: 60
              autoPlay: true
      
              onStatusChanged: {
                  console.log("onStatusChanged", status)
                  if (status === LottieAnimation.Ready) {
                      lottie.frameRate = 30;
                      lottie.gotoAndPlay(startFrame);
                      lottie.start();
                      print("started");
                  }
              }
          }
      }
      

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            jaredtao jared tao
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes