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

KeyframeGroup assign property even animation didn't start

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15
    • Quick: Timeline
    • None

      here is the demo:

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Timeline
      
      Rectangle {
          id: root
          color: "#000000"
          width: 800
          height: 480
      
          Timeline {
              enabled: true
              animations: [
                  TimelineAnimation {
                      id: test
                      duration: 33 * 60
                      from: 0
                      to: 60
                      onStarted: console.log("TimelineAnimation onStarted")
                  }
              ]
              KeyframeGroup {
                  target: testitem
                  property: "testProperty"
                  Keyframe { frame: 0; value: "123123213" }
              }
          }
      
          Item {
              id: testitem
              property string testProperty
              onTestPropertyChanged: console.log("testProperty:", testProperty)
          }
      }
      

      in the above demo, onTestPropertyChanged is triggered even animation didn't run.
      which expect change when animation started as other property types like int.
      change frame: 0 to frame: 1 using as a temp solution.

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

            Unassigned Unassigned
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes