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

Behavior on x/y enabled Binding Not Fails

    XMLWordPrintable

Details

    Description

      I want a Behavior to only apply an animation when the user releases the mouse. I enable the behaviors via

      enabled: (mouseArea.pressed === false)

      But this does not work unless I have some other item evaluate the enabled property of the behavior.

      The attached example is a joystick that should animate back to the start point after releasing the mouse. I cannot make this work without the item with id "wtf".

      This works as expected without the bogus item on iOS.

      Attachments

        1. QtBehaviorBug.qml
          2 kB
          Aaron Jaques

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              aaronjaques Aaron Jaques
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes