У меня есть пользовательская кнопка:
import QtQuick 2.0
Rectangle {
id: xobutton
width: 100
height: 100
property string label: "?"
border.width: 2
Text {
id: xobuttonLabel
text: label
font.pointSize: 75
anchors.centerIn: parent
}
}
У него есть родитель Rectangle
:
Rectangle {
width: 500
height: 500
Grid {
anchors.centerIn: parent
rows: 3; columns: 3; spacing: 0
Repeater {
model: 9
Xobtn { }
}
}
}
Мне нужно растянуть все кнопки в Grid
для всего свободного места в родительском Rectangle
. Как я могу это сделать? Спасибо.