I’ve got a fairly simple problem. I have two buttons that are vertically stacked in a ColumnLayout (code is below). The text is different and I want both buttons to have the same width. How would I do that? I can’t seem to find a watch to make the width of a button to be controlled by anything other than the width of the text.
ColumnLayout {
id: column
AppButton {
text: qsTr("short text");
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
}
AppButton {
text: qsTr("much much longer text");
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
}
}