Component.onCompleted
-
Hi ,
I'm creating QML components using Javascript.(createComponent & createObject calls).
Once a particular component is created, trying to call other function.But the 1st component creation is consuming some time(1/2 sec), due to which even before the component is created , the second call is executing and it's functionalities are handled
ex:
I have component1.qml -> creating via javacript method.
inside of this file , i do have
Component.onCompleted:{create Component2.qml
}Here Even before compoent1.QML is completely loaded on Target machine(Display board), compoent2 is created and it's functionalities such as mouse click are handled. Is there alternative to do this job.
I have to create component2 , only if component1 is completely created and loaded.
Thank you.