| Summary: | The delegate recycler have a different geometry then "raw" delegates | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kirigami | Reporter: | Emmanuel Lepage Vallée <emmanuel.lepage> |
| Component: | general | Assignee: | Marco Martin <notmart> |
| Status: | REPORTED --- | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 5.53.0 | ||
| Target Milestone: | Not decided | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
can you upload the image here? the one on imgur is expired trying it locally with master, it seems to work as expected (cardslistview does add extra side margins, but that is by design) does the problem persists? |
SUMMARY import QtQuick 2.7 import org.kde.kirigami 2.5 as Kirigami import QtQuick.Layouts 1.0 Kirigami.CardsListView { ListModel { id: topLevel ListElement {name: "One"} ListElement {name: "Two"} ListElement {name: "Three"} } ListModel { id: secondLevel ListElement {name: "Alpha"} ListElement {name: "Beta"} ListElement {name: "Gamma"} } model: topLevel delegate: Kirigami.Card { width: parent.width height: content.height ColumnLayout { id: content height: implicitHeight Text { text: model.name; height: 40} ListView { model: secondLevel interactive: false height: contentHeight delegate: Rectangle {color:"red"; width: 42; height: 42} } } } } STEPS TO REPRODUCE 1. Use the example above with and without recycler and witness the different result OBSERVED RESULT / EXPECTED RESULT https://imgur.com/a/QVmOtLj