Есть ли способ удалить начальные и конечные поля в компонентах макета QML?
Вот пример ColumnLayout с парой дочерних элементов. Вопрос в том, как удалить эти верхние и нижние поля и перераспределить все дочерние элементы по всей высоте родительского макета.
ColumnLayout {
id: dotColumn
anchors.horizontalCenter: bg.horizontalCenter
height: root.height
Repeater {
id: repeater
model: root.model
Item {
id: activeDot_container
property int radius: 15
width: radius * 2
height: radius * 2
Rectangle {
anchors.centerIn: parent
radius: parent.radius
width: radius * 2
height: radius * 2
color: Palette.colors['deepPurple']['500']
}
}
}
}
Layout.alignment: Qt.AlignTop
к элементуactiveDot_container
. - person folibis   schedule 26.12.2016