MainForm.ui.qml.tpl 479 Bytes
Newer Older
1 2 3
import QtQuick %{QtQuickVersion}
import QtQuick.Controls %{QtQuickControlsVersion}
import QtQuick.Layouts %{QtQuickLayoutsVersion}
4 5 6 7 8 9

Item {
    width: 640
    height: 480

    property alias button1: button1
10
    property alias button2: button2
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

    RowLayout {
        anchors.centerIn: parent

        Button {
            id: button1
            text: qsTr("Press Me 1")
        }

        Button {
            id: button2
            text: qsTr("Press Me 2")
        }
    }
}