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

State Transitions animate properties not expected to change

    XMLWordPrintable

Details

    • f9fe93e6e85294274d4e0ce81db09783cfacd733

    Description

      Hi there,

      The attached example shows a state transition that runs a property animation I understand to be incorrect.

      The idea is I have two states:

      1) Dragging
      does not set any property

      2) Left
      sets X to some value
      restoryEntryValues is FALSE

      In the state transition Left TO Dragging nothing should happen to the X value, right?

      So then I have the following transition:

      Transition {
      PropertyAnimation

      { properties: "x"; duration: 3000 }

      }

      This animation runs on my object when doing the mentioned state transition, continuously setting X to the value it has when state change happens.

      See attached example to reproduce the bug.

      To reproduce

      • Drag the red rectangle to the right side. It drags smoothly
      • Click the return to left button, wait for anim to finish
      • Drag red rectangle to the right side again. Rectangle flickers while animation is running since the dragging conflicts with it.

      Attachments

        1. animationbug.qml
          2 kB
          Eduardo Fleury
        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)
            fleury Eduardo Fleury
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes