Qml delay function problem
-
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 ?
-
Or you can setup SequentialAnimation with your animation and ScriptAction with given script