I have re-checked the case with a clear project and came to the idea that my observations were dependent on what I do when properties of an object are being set. That last time I had a sistem which automatically sets up a GUI element onWindowChanged (for that object) event if it is possible (new window is fine).
So what really depends on simple/well syntax is which properties of parent object are set first. I suppose with simple-syntax the default property is resolved and set first of all, when using well-syntax results in properties resolved in order they appear in QML description.
// 1:
Image
{
window: system.graphic
ButtonSilver { x: 20; y: 170; }
}
// 2:
Image
{
window: system.graphic
content: [ ButtonSilver { x: 20; y: 170; } ]
}
With option “1” I’ve got “content” property for Image resolved and set first, and then “window” was set, resulting in gui-Image backend instantiated later then it was done for a button backend. Hence option “2” provides more kind of expected order, which however shouldn’t matter as QML is declarative language. It is up to me to make my plugin as declarative as QML expects.
↧