Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
-
Qt 5.9.3, Windows 10 version 1607, 64-bit
Description
With the following code:
import QtQuick 2.9 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.3 Rectangle { id: root width: 400 height: 200 SplitView { anchors.fill: parent Item { id: leftItem height: parent.height width: 200 Layout.minimumWidth: 100 onWidthChanged: console.log("leftItem.width: ", width) } Item { id: rightItem height: parent.height width: 200 Layout.fillWidth: true onWidthChanged: console.log("rightItem.width: ", width) } } }
When adjusting the slider to less than 100 produces output like:
qml: leftItem.width: 101 qml: rightItem.width: 298 qml: leftItem.width: 100 qml: rightItem.width: 299 qml: leftItem.width: 99 qml: leftItem.width: 100 qml: leftItem.width: 98 qml: leftItem.width: 100