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!! -
Please ask your question in http://qt-project.org/forums/viewforum/12/
-
Hi,
You can use the "onStopped":http://qt-project.org/doc/qt-5/qml-qtquick-animation.html#stopped-signal event handler so that you can do the operations after the Animation is completed.