Bug 499131 - A QListWidget doesn't get a frame drawn unless there are other widgets in the same layout
Summary: A QListWidget doesn't get a frame drawn unless there are other widgets in the...
Status: REPORTED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-25 13:38 UTC by Tobias Leupold
Modified: 2025-01-27 19:59 UTC (History)
3 users (show)

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


Attachments
The QListWidget lacks it's frame using Breeze (7.70 KB, image/png)
2025-01-25 13:39 UTC, Tobias Leupold
Details
The frame is displayed correctly using Fusion (7.62 KB, image/png)
2025-01-25 13:40 UTC, Tobias Leupold
Details
CMakeLists.txt (250 bytes, text/plain)
2025-01-25 13:40 UTC, Tobias Leupold
Details
main.cpp (194 bytes, text/x-c++src)
2025-01-25 13:41 UTC, Tobias Leupold
Details
MainWindow.cpp (904 bytes, text/x-c++src)
2025-01-25 13:41 UTC, Tobias Leupold
Details
MainWindow.h (184 bytes, text/x-chdr)
2025-01-25 13:41 UTC, Tobias Leupold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Leupold 2025-01-25 13:38:47 UTC
I think this is a Plasma 6 or Qt6/KF6 regression. I don't remember seeing this in Qt5/KF5 times:

A QListWidget that is the only widget in a layout doesn't get a frame. However, a frame is drawn as soon as another widget is added to the same layout.

This doesn't happen when using the Fusion style, in this case, the QListWidget always has it's frame.

I'll both attach screenshots and a minimal example producing the mentioned behavior.
Comment 1 Tobias Leupold 2025-01-25 13:39:41 UTC
Created attachment 177665 [details]
The QListWidget lacks it's frame using Breeze
Comment 2 Tobias Leupold 2025-01-25 13:40:00 UTC
Created attachment 177666 [details]
The frame is displayed correctly using Fusion
Comment 3 Tobias Leupold 2025-01-25 13:40:58 UTC
Created attachment 177667 [details]
CMakeLists.txt
Comment 4 Tobias Leupold 2025-01-25 13:41:09 UTC
Created attachment 177668 [details]
main.cpp
Comment 5 Tobias Leupold 2025-01-25 13:41:19 UTC
Created attachment 177669 [details]
MainWindow.cpp
Comment 6 Tobias Leupold 2025-01-25 13:41:30 UTC
Created attachment 177670 [details]
MainWindow.h
Comment 7 Tobias Leupold 2025-01-27 19:59:08 UTC
Maybe this is related to or even caused by https://bugs.kde.org/show_bug.cgi?id=488195 ?