Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.0
-
None
Description
The inactive Loader below takes up space in the layout. Replacing it with the commented-out Rectangle works as expected.
import QtQuick 2.8 import QtQuick.Layouts 1.3 import QtQuick.Controls 2.1 ApplicationWindow { id: window objectName: "window" width: 800 height: 800 visible: true ColumnLayout { id: panelColumnLayout spacing: 2 anchors.right: parent.right Rectangle { id: colourPanel color: "#444" implicitWidth: 300 implicitHeight: 250 Layout.fillHeight: true } Loader { objectName: "tilesetSwatchLoader" active: false sourceComponent: Rectangle { color: "#444" implicitWidth: 300 implicitHeight: 250 } Layout.fillHeight: true } // Rectangle { // color: "#444" // implicitWidth: 300 // implicitHeight: 250 // visible: false // Layout.fillHeight: true // } Loader { objectName: "layersLoader" active: true sourceComponent: Rectangle { color: "#444" implicitWidth: 300 implicitHeight: 250 Layout.fillHeight: true } } } }
Attachments
Issue Links
- relates to
-
QTBUG-39068 Setting Loader to inactive doesn't reset its width/height
-
- Open
-
-
QTBUG-59578 Loader does not change implicit sizes when component reset.
-
- Reported
-