[Qt-qml] How QML file is parsed and linked and executed?

ext-ivailo.iliev at nokia.com ext-ivailo.iliev at nokia.com
Mon Nov 22 09:49:36 CET 2010


Hi,

as you all know HTML and JavaScript are executed / or evaluated / form the TOP to BOTTOM. So if you have a source of 100 lines it will start from line 1 and will finish with the last one. When you know this you can somehow figure our some tricks you want to make and know what to expect.

I have a QML file that I want to trace how it's reacting.

Rectangle {onCompleted: {console.col("m1")}}
Rectangle {onCompleted: {console.col("m2")}}

and in the console output I have m2, m1.

so does it mean that in QML we have stack popup priority of structure handling - you parse it from top to bottom and execute it form bottom to top? does it mean that my "later" element will always have Component.onCompleted "before"? Or this reverse order is just temporary or coincidence on my machine or we shall not  expect any order of loading - "everything will come when it comes"?

Best Regards,
Ivo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101122/b6619026/attachment.html 


More information about the Qt-qml mailing list