It definitely only snaps back once for me. After the first time, it stays at the position of mouse release. I'm using the 4.7 release candidate on Mac OS X. Perhaps it did get fixed since then... glad to hear it.
-Tico On Sep 17, 2010, at 7:15 AM, Eduardo Fleury wrote: > Hi TIco, > > On Fri, Sep 17, 2010 at 3:41 AM, Tico Ballagas <[email protected]> wrote: > Basically, I'm trying to snap rect back to it's original position after the > mouse is released. The behavior works once, but then stops working. > > > > Here the code you sent works fine in my opinion. I can drag the red box to > the right and when I release the mouse button, it animates back to the > original left position. I did that several times. > > If fact, I was expecting to get weird behaviors / flicking _while_ dragging > because in theory there are two conflicting forces acting on the position of > the red rectangle: > > 1) You are dragging thus changing rect.x > 2) There is an animation changing the value of rect.x 60 times per second. > > I worked fine nevertheless. :-) > > Maybe there's a bug recently fixed. Which version of Qt are you running? > > -- > Eduardo M. Fleury > OpenBossa - INdT > http://eduardofleury.com/ > http://www.openbossa.org/
_______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
