Bug 435546 - Visual glitch when using ListSectionHeader with ListView inside OverlaySheet
Summary: Visual glitch when using ListSectionHeader with ListView inside OverlaySheet
Status: RESOLVED DUPLICATE of bug 422289
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.80.0
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-09 14:25 UTC by Nate Graham
Modified: 2021-04-26 18:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
How this looks (69.62 KB, image/png)
2021-04-09 14:25 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2021-04-09 14:25:04 UTC
Created attachment 137451 [details]
How this looks

Sample code:

```
    Kirigami.OverlaySheet {

        header: Kirigami.Heading { text: "This is awesome" }

        ListView {
            id: view
            implicitWidth: Kirigami.Units.gridUnit * 25
            clip: true
            model: [some model]

            section.property: "grouping"
            section.delegate: Kirigami.ListSectionHeader {
                width: view.width
                label: section
            }
            delegate: Kirigami.BasicListItem {
                width: view.width
                text: model.text
                subtitle: model.description
            }
        }
    }
```

Real-life example in https://invent.kde.org/plasma/discover/-/blob/master/libdiscover/backends/PackageKitBackend/qml/DependenciesButton.qml#L27

See attached screenshot for what this produces.
Comment 1 Ismael Asensio 2021-04-26 18:45:08 UTC

*** This bug has been marked as a duplicate of bug 422289 ***