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
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to