[Qt-qml] Weirdness with Behaviors
Eduardo Fleury
eduardo.fleury at openbossa.org
Fri Sep 17 16:15:01 CEST 2010
Hi TIco,
On Fri, Sep 17, 2010 at 3:41 AM, Tico Ballagas <ballagas at gmail.com> 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100917/6ee7db88/attachment.html
More information about the Qt-qml
mailing list