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

Animation in transition between states ignored (regression since 5.14)

    XMLWordPrintable

Details

    Description

      In the attached example, pressing a button slides in an overlay from the right, and a button on the overlay closes the overlay. Both opening and closing is animated, with slightly different animations:

      transitions: [
          Transition {
              from: "hidden"
              to: "shown"
              NumberAnimation {
                  properties: "anchors.rightMargin"
                  duration: 1800
                  easing.type: Easing.InQuint
              }
          },
          Transition {
              from: "shown"
              to: "hidden"
              NumberAnimation {
                  properties: "anchors.rightMargin"
                  duration: 1800
                  easing.type: Easing.OutQuint
              }
          }
      

      The first transition is ignored: opening the overlay isn't animated. Closing is.

      It works if using a single transition, without explicit linking to states via from/to:

      transitions: [
          Transition {
              NumberAnimation {
                  properties: "anchors.rightMargin"
                  duration: 1800
                  easing.type: Easing.InQuint
              }
          }
      ]
      

      I see this broken since Qt 5.14.2, while it works in 5.13.2.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            frank.osterfeld Frank Osterfeld
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes