Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.2
-
2cf897f2a (dev), 8862c989c (6.6), 42dcda6be (6.5), 1f09a9662 (tqtc/lts-6.2)
Description
Third item and any new items after that are added fully visible behind the first item. To reproduce, run attached example, click the button.
import QtQuick import QtQuick.Controls import QtQuick.Window import QtQuick.Layouts Window { visible: true width: 800 height: 600 Component { id: cmp Rectangle { property int i: SwipeView.index Text { y: 30 text: "index: " + parent.i } color:"blue" } } Component { id: cmp2 Rectangle { color: "yellow" property int i: SwipeView.index Text { text: parent.i } opacity: 0.3 Button { anchors.centerIn: parent text: "click me" onClicked: { cmp.createObject(sv) } } } } SwipeView { id: sv anchors.fill: parent } Component.onCompleted: Qt.callLater(function(){ cmp2.createObject(sv) cmp.createObject(sv) }) }
Attachments
Issue Links
- is duplicated by
-
QTBUG-105587 SwipeView: dynamically added children with index > 1 positioned at index 0
-
- Closed
-
- relates to
-
QTBUG-51669 QQC2: SwipeView is not working as expected
-
- Closed
-