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

Transition element to and from properties should support multiple states

    XMLWordPrintable

Details

    • c8cb154e167ae82e464b07aed8c5a0aac1112d9e

    Description

      You need to define multiple transitions when 1.) you have multiple states with different relationships in your element and/or 2.) the direction of the animation is important, like when using ParentAnimation or PropertyAction inside the transition. What you quickly find out that while some of the transitions had to be different, you also end up having transitions with identical animations that you cannot define inside the same transition due to the only supported Transition paths to and from properties give you either being "one to all", "all to one" or "one to one."

      So instead of having to write

      Transition {
          from: "state1"
          to: "state2"
          MyAnimation {
              ...
          }
      }
      Transition {
          from: "state1"
          to: "state 3"
          MyAnimation {
              ...
          }
      }
      

      to reduce code duplication it would be nice if you could assign multiple states to from and to properties:

      Transition {
          from: "state1"
          to: "state2, state 3"
          MyAnimation {
              ...
          }
      }
      

      Attachments

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

        Activity

          People

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes