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

Using property values in QML animations triggers an assertion

    XMLWordPrintable

Details

    • 07ca60dcc (dev), 2272ed0cd (6.6), 3a511f56f (6.5)

    Description

      I was trying to make a button wiggle back and forth to grab my users attention. I was triggering the animation using a property (wiggle_value in this case). If I use the wiggle_value property instead of an integer in the second `NumberAnimation` during my `SequentialAnimation`, it messes with the animation. The first time everything animates as expected. The second and subsequent animations are visually different. Stunted, almost. It only doing half the rotation, and the timing is weird.

       

      In the attached code, if you change line 45 of `main.qml` from

      NumberAnimation {
          to: -ready_button.wiggle_value
          duration: 120
      }

      to the below

      NumberAnimation {
          to: -10
          duration: 120
      }
      

      Every works as expected. 

       

      The zip file has all the code zipped together. I attached the main.qml for ease of view as well.

       

      Attachments

        1. code.zip
          2 kB
        2. main.qml
          1 kB
        3. QTBUG-68404_backtrace.txt
          131 kB
        For Gerrit Dashboard: QTBUG-68404
        # Subject Branch Project Status CR V

        Activity

          People

            qtqmlteam Qt Qml Team User
            benhoff Ben Hoff
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes