А нет, немного хитрее - вот попробовал код такой
import QtQuick 1.1
Rectangle {
Component.onCompleted: console.log('Component completed 1')
Rectangle {
Component.onCompleted: console.log('Component completed 2')
}
Rectangle {
Component.onCompleted: console.log('Component completed 3')
}
Rectangle {
Component.onCompleted: console.log('Component completed 4')
Rectangle {
Component.onCompleted: console.log('Component completed 41')
Rectangle {
Component.onCompleted: console.log('Component completed 42')
Rectangle {
Component.onCompleted: console.log('Component completed 43')
Rectangle {
Component.onCompleted: console.log('Component completed 44')
}
}
}
}
}
Rectangle {
Component.onCompleted: console.log('Component completed 5')
Rectangle {
Component.onCompleted: console.log('Component completed 51')
Rectangle {
Component.onCompleted: console.log('Component completed 52')
Rectangle {
Component.onCompleted: console.log('Component completed 53')
Rectangle {
Component.onCompleted: console.log('Component completed 54')
}
}
}
}
}
}
Выдало следующее:
Component completed 1
Component completed 5
Component completed 51
Component completed 52
Component completed 53
Component completed 54
Component completed 4
Component completed 41
Component completed 42
Component completed 43
Component completed 44
Component completed 3
Component completed 2