Files
qt-creator/tests/manual/layoutbuilder/comparison/quick/Main.qml
hjk 3e953f4896 Layouting: Add some example code as show case
Change-Id: I92842c7859514397748e744949688090154772df
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-02 08:58:20 +00:00

31 lines
488 B
QML

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() }
}
}
}