-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.1
-
-
dda9a7e4b (dev), 175eed9fb (6.5)
SplitView handle is out of normal size when changing rotation of SplitView. But if you change the size, then the handle has the correct size.
Example:
Code to reproduce:
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 Window { width: 640 height: 480 visible: true title: qsTr("SplitView jopa") SplitView { id: root anchors.fill: parent Rectangle { color: "red" SplitView.preferredWidth: root.orientation === Qt.Horizontal ? root.width / root.count : root.width SplitView.preferredHeight: root.orientation === Qt.Horizontal ? root.height : root.height / root.count } Rectangle { color: "blue" SplitView.preferredWidth: root.orientation === Qt.Horizontal ? root.width / root.count : root.width SplitView.preferredHeight: root.orientation === Qt.Horizontal ? root.height : root.height / root.count } } Button { text: "ROTATE ME" onClicked: root.orientation = (root.orientation === Qt.Horizontal ? Qt.Vertical : Qt.Horizontal) } }
For Gerrit Dashboard: QTBUG-88195 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
478250,4 | Fix SplitView orientation bug | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
478534,2 | Fix SplitView orientation bug | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |