Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.1.0 RC
-
None
Description
Setting a layout's minimumHeight too small crashes the application.
In below snippet setting the RowLayout's Layout.minimumHeight to < 5 crashes the application. In the snippet, setting the Layout.minimumHeight to flatShadingToggle.height also crashes the application.
This bug can be reproduced with qlm3doscilloscope example from datavisualization.
RowLayout { id: buttonLayout Layout.fillHeight: true Layout.fillWidth: true Layout.minimumHeight: exitButton.height spacing: 0 Button { id: flatShadingToggle Layout.fillHeight: true Layout.fillWidth: true text: surfaceSeries.flatShadingSupported ? "Show Flat" : "Flat not supported" enabled: surfaceSeries.flatShadingSupported onClicked: { if (surfaceSeries.flatShadingEnabled === true) { surfaceSeries.flatShadingEnabled = false; text = "Show Flat" } else { surfaceSeries.flatShadingEnabled = true; text = "Show Smooth" } } } Button { id: surfaceGridToggle Layout.fillHeight: true Layout.fillWidth: true text: "Show Surface Grid" onClicked: { if (surfaceSeries.drawMode & Surface3DSeries.DrawWireframe) { surfaceSeries.drawMode &= ~Surface3DSeries.DrawWireframe; text = "Show Surface Grid" } else { surfaceSeries.drawMode |= Surface3DSeries.DrawWireframe; text = "Hide Surface Grid" } } } Button { id: exitButton Layout.fillHeight: true Layout.fillWidth: true text: "Quit" onClicked: Qt.quit(); } }