Qml delay function problem
-
wrote on 13 Jul 2014, 10:43 last edited by
hello
i want to destroy a rectangle in qml by animation(like hiding) like thisanimation.start(); rec.destroy();
but after running… this rectangle (rec) will be destroyed before that animation ending
this is my animation codePropertyAnimation {id:animation ;target: rec; property: “opacity”; to: 0 }
i think my problem will be solved by a delay function or something like that
please help me!! -
Hi,
Did you try onStopped event handler as mentioned "here":http://qt-project.org/forums/viewthread/44060/#181381 ?
-
wrote on 15 Jul 2014, 07:42 last edited by
Or you can setup SequentialAnimation with your animation and ScriptAction with given script
1/3