Files
qt-creator/tests/manual/layoutbuilder/comparison/quick/Main.qml
hjk 70b02d23e1 LayoutBuilder: Rework
Everying is a LayoutItem now, and everything is split into
a proper setup and execution phase.

Execution happens only via LayoutBuilder (directly or via
convenience wrappers in LayoutItem).

No direct access to the widget in creation, funnel out is
via the new bindTo() facility.

Change-Id: I7eb38fd736ae57a68f9a72a6add5c767da82b49f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-03 13:44:02 +00:00

31 lines
487 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() }
}
}
}