https://bugs.kde.org/show_bug.cgi?id=417844
Bug ID: 417844 Summary: Kirigami Icon crashes in RowLayout without explicit width/height Product: frameworks-kirigami Version: Master Platform: unspecified OS: All Status: REPORTED Severity: crash Priority: NOR Component: general Assignee: notm...@gmail.com Reporter: mt...@outlook.com Target Milestone: Not decided SUMMARY Instantiating a Kirigami.Icon within a RowLayout causes a crash when no Layout.preferredHeight/Layout.preferredWidth is specified. STEPS TO REPRODUCE 1. Create a Kirigami.OverlaySheet with a header as follows: Kirigami.OverlaySheet { id: sheet header: RowLayout { Kirigami.Icon { source: "dialog-error" } } // ... } 2. Invoke sheet.open() to trigger the crash OBSERVED RESULT Application crashes EXPECTED RESULT Icon to render using implicit height/widths as loaded by the underlying QIcon SOFTWARE/OS VERSIONS Windows: Windows 10 Android: Android Emulator macOS: NA Linux/KDE Plasma: NA (available in About System) KDE Plasma Version: NA KDE Frameworks Version: Kirigami master Qt Version: 5.12.6 ADDITIONAL INFORMATION When setting Layout.preferredHeight or Layout.preferredWidth explicitly, the system does not crash. This seems like there's an issue where the RowLayout is maybe setting the width/height to zero, or something invalid. -- You are receiving this mail because: You are watching all bug changes.