How to position nested Items in a QML component?
Given MyPage.qml:
import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
id: page
Header { }
Column {
// child Items should go here
}
Footer { }
}
How can I do
import QtQuick 2.0
import Sailfish.Silica 1.0
// snip
MyPage {
MyObj {}
AnotherObj { cmd: "a" }
AnotherObj { cmd: "b" }
}
// snip
MyPage2 {
MyObj {}
AnotherObj { cmd: "c" }
}
and have the MyObj and AnotherObj items appear in the column?
The actual use-case is to have quite a few pages with very similar boiler plate using a set of display objects with parameters.