I have a qml vertical SplitView, splited into 2 elements :
- the top element is a green rectangle
- the bottom element is red rectangle Both have a minium height of 200. Inside the bottom element, there is a blue rectangle anchored to the bottom with a fixed height of 50.
It looks like this 1 :
The issue is : when I resize (shrink) the window from the bottom, the bottom item does not get resized so the blue rectangle disapear under the window.
Steps to reproduce the issue :
- move the handle a few hundred pixels to the top
- resize the window from the bottom side to the top until the bottom item start shrinking
I get this result 2 , and as soon as I move the handle, everything goes back to a normal state and the bottom item is resized as it should be 3.
Here is the qml code :
import QtQuick.Controls 2.15
import QtQuick.Window 2.15
ApplicationWindow {
id: root
title: testSplitView
visible: true
x: 100; y: 100
width: 1300; minimumWidth: 900;// maximumWidth: 1300
height: 900; minimumHeight: 550;// maximumHeight: 900
Rectangle{
id: rectangle
anchors.fill: parent
color: "darkGrey"
SplitView{
id: verticalSplitView
anchors.fill: parent
orientation: Qt.Vertical
Rectangle{
id: topRectangle
SplitView.fillHeight: true
SplitView.minimumHeight: 200
color: "red"
}
Rectangle{
id: bottomRectangle
SplitView.minimumHeight:200
color: "green"
Rectangle{
anchors.bottom: parent.bottom
height: 50
width: parent.width
color: "blue"
}
}
}
}
}