Hi,
On 27.02.2018 13:17, René Hansen wrote:
You are probably looking to use a *ColumnLayout* and not a *Column*,
if you want to use *Layout.fillWidth*.
You are right. This helped. Thanks.
/René
On Tue, 27 Feb 2018 at 10:43 Igor Mironchik <igor.mironc...@gmail.com
<mailto:igor.mironc...@gmail.com>> wrote:
Hello,
How can I shrink all buttons to the widest width in QML Column?
I.e. I have:
Column {
anchors.centerIn: parent
spacing: 20
Button {
id: btn1
implicitHeight: appWindow.minimumCtrlHeight
Layout.fillWidth: true
text: qsTr( "Press" )
}
Button {
id: btn2
implicitHeight: appWindow.minimumCtrlHeight
Layout.fillWidth: true
text: qsTr( "Press Press" )
}
Button {
id: btn3
implicitHeight: appWindow.minimumCtrlHeight
Layout.fillWidth: true
text: qsTr( "Press Press Press" )
}
}
On desktop these buttons are with the same width, but on Android they
are as small as possible.
Thank you.
_______________________________________________
Interest mailing list
Interest@qt-project.org <mailto:Interest@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest