Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.0, 5.12.3
-
None
-
Arch Linux, KDE Plasma 5.10
-
5339b3eb13f4a175372d46d91e2fc0be3c145344 (qt/qtdeclarative/dev) 73ba2d808a25182c50ad0d4f3ad63f7bbd594143 (qt/qtdeclarative/6.2)
Description
When calling
pop(StackView.Immediate)
this will lead to a blank stack view with no content shown anymore. Calling without the SackView.Immediate parameter works properly.
Also, when the push transaction has been called with StackView.Immediate, all seems to work fine as well.
Example Code (press the "push" button a few times, then "pop").
import QtQuick 2.9 import QtQuick.Controls 2.1 import QtQuick.Layouts 1.3 ApplicationWindow { id: rootwindow visible: true width: 640 height: 480 title: qsTr("Hello World") property int counter: 0 Component { id: rectcomponent Rectangle { color: "#ff0000" property alias text: label.text Text { id: label anchors.centerIn: parent } } } ColumnLayout { id: buttonrow anchors.fill: parent Button { text: "pop" onClicked: stack.pop(StackView.Immediate) } Button { text: "push" onClicked: { stack.push(rectcomponent, {text: rootwindow.counter}); rootwindow.counter++; } } StackView { id: stack Layout.fillHeight: true Layout.fillWidth: true } } }
Attachments
Issue Links
- relates to
-
QTBUG-53448 Pushed item after StackView::clear() has wrong x coordinate.
- Reported
-
QTBUG-57267 StackView: pushing an item again before its exiting animation ends visually clears the stack
- Closed