Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
Description
Current behavior:
Window with a layout can be resized smaller than the minimum size of the layout by default. This has to be changed manually.
import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Layouts 1.12 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") RowLayout{ id: layout anchors.fill: parent Rectangle{ color: "red" Layout.minimumWidth: 100 Layout.minimumHeight: 100 } Rectangle{ color: "green" Layout.minimumWidth: 100 Layout.minimumHeight: 100 } Rectangle{ color: "blue" Layout.minimumWidth: 100 Layout.minimumHeight: 100 } } }
Desired behavior:
Window with a layout automatically considers the layout size constraints and prevents Window from being resized smaller than the contained layout minimum size.
Attachments
Issue Links
- mentioned in
-
Page Loading...