[Qt-qml] How to animate an item moving between layouts

Artem Marchenko artem.marchenko at gmail.com
Wed Dec 14 12:09:52 CET 2011


Harald, I clearly remember some discussion (happening on IRC?) where people were discussing *details* about the animation of moving item between two rows.
I was even trying the example about it. 

Unfortunately I don't remember what exactly it was about and there is a possibility that I remember it totally wrong. Give IRC a try though.

BR,
Artem.

On Dec 14, 2011, at 8:09 AM, Harald Hvaal wrote:

> Is there really no way to do this guys? Not even with qt quick 2?
> Although I'm hoping to avoid it, would it help if I wrote some component in c++?
> 
> Harald
> 
> On Sat, Dec 10, 2011 at 11:49 AM, Harald Hvaal <harald.hvaal at gmail.com> wrote:
>> 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
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml



More information about the Qt-qml mailing list