23 lines · 480 B · Text
RawDownload
import QtQuick 2.15import QtQuick.Controls 2.15import 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	} 	// Append children made using this custom element to the ColumnLayout.	Component.onCompleted: {		while (root.contentChildren.length > 1){			root.contentChildren[2].parent = root.contentChildren[0]		}	}}