summaryrefslogtreecommitdiff
path: root/tests/manual/layoutbuilder/comparison/quick/Main.qml
blob: 617b573caaabda8e9b89d44931dd30c11daafd71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

ApplicationWindow
{
    width: 640
    height: 480
    visible: true
    title: "Hello World"

    ColumnLayout {
        anchors.fill: parent

        Text {
            Layout.fillHeight: true
            Layout.fillWidth: true

            text: "Hallo"
        }

        Button {
            text: "Quit"
            height: 20
            Layout.fillWidth: true

            onClicked: { Qt.quit() }
        }
    }
}