Logo
Explore Help
Sign In
feedc0de/qt-creator
1
0
Fork 0
You've already forked qt-creator
forked from qt-creator/qt-creator
Code Pull Requests Activity
Files
a4df0a3cc4ec952dd511b1794b1624d21d5dbccd
qt-creator/tests/manual/layoutbuilder/comparison/quick/Main.qml

31 lines
487 B
QML
Raw Normal View History

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-04-26 12:37:43 +02:00
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
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-04-27 08:24:43 +02:00
ApplicationWindow
{
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-04-26 12:37:43 +02:00
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() }
}
}
}
Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 33ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API