[Interest] QML | Column | Buttons

Igor Mironchik igor.mironchik at gmail.com
Tue Feb 27 10:43:30 CET 2018


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.




More information about the Interest mailing list