Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.15.2
-
None
Description
In the following example there is a button which toggles the visibility of a label. As a result the height of the pane expands although it should not. However, it works with Qt 5.15.0.
import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 ApplicationWindow { id: root property bool triggerLayoutIssue: false visible: true width: 800 height: 600 Pane { contentItem: ColumnLayout { RowLayout { Button { text: "Trigger Layout Issue" onClicked: root.triggerLayoutIssue = true } Label { text: "Label" visible: root.triggerLayoutIssue } } } background: Rectangle { color: "red" } } }