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

Animations in transitions do not set running property, transitions do not have running property

    XMLWordPrintable

Details

    • 5bbb2e195b2cee8dbea0715ebf6eef41f36a3100

    Description

      Run sample.qml and press the red rectangle.

      The problem is: Animations which run in transitions do not propagate the fact that they are running in their "running" property. A second problem is, that the Transition itself does not have a read-only running property.

      Why is this a problem? We sometimes want to enable special GL effects when a transition is happening.

      The current workaround is to set a special property to true when the transition starts with PropertyAction{}, and have that set to false in the target state. But this is ugly and mixes states and transisions.
      It's necessary to set the property in the state's PropertyChanges, because state-changing transitions can be aborted at any time.

      sample_workaround.qml shows this workaround.

      Attachments

        1. QTBUG-13927.patch
          4 kB
        2. sample_workaround.qml
          1 kB
        3. sample.qml
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            charles Charles Yin (closed Nokia identity) (Inactive)
            mae mae
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes