mirror of
https://github.com/overte-org/overte.git
synced 2025-07-11 19:18:39 +02:00
24 lines
561 B
QML
24 lines
561 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.3
|
|
|
|
ScrollView {
|
|
width: parent.width
|
|
height:parent.height
|
|
y: header.height
|
|
id: root
|
|
|
|
ColumnLayout {
|
|
width: parent.width
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
spacing: 0
|
|
}
|
|
|
|
// For each child of index not of 0, append as child of index of 0.
|
|
// Append children of the custom element to the ColumnLayout.
|
|
Component.onCompleted: {
|
|
for (var i = 1; i < root.contentChildren.length; i++) {
|
|
root.contentChildren[i].parent = root.contentChildren[0]
|
|
}
|
|
}
|
|
}
|