[Qt-qml] How to animate an item moving between layouts
Harald Hvaal
harald.hvaal at gmail.com
Sat Dec 10 11:49:29 CET 2011
Hi, I am hoping that someone could help me solve this seemingly simple problem:
How do I animate an item moving from one layout two another?
I have attached a small example of what I am trying to do, but even
more summarized the problem goes like this:
Row { id: top; Box{id: box} }
Row { id: bottom; }
Button { onClicked: { box.parent = bottom; }
How do I animate this parentchange?
I have tried add/move-transitions on the rows, I have tried
ParentChange in states, ParentAnimations used on behaviors, nothing
seems to solve this problem. Any help would be greatly appreciated!
Thanks,
Harald Hvaal
harald.hvaal at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: layoutAnimation.qml
Type: text/x-qml
Size: 1080 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20111210/76be50ad/attachment.bin
More information about the Qt-qml
mailing list