https://bugs.kde.org/show_bug.cgi?id=499906

David Redondo <k...@david-redondo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |UPSTREAM

--- Comment #10 from David Redondo <k...@david-redondo.de> ---
I added some debug output and to me it looks like a bug in Qt StyleSheetStyle.
Without a stylesheet content Breeze sizeFromContents returns QSize(52, 32).
WIth a stylesheet it returns the same value. However stylesheet style goes into
this clause 
https://invent.kde.org/qt/qt/qtbase/-/blob/6.8.2/src/widgets/styles/qstylesheetstyle.cpp?ref_type=heads#L5317
and returns QSize(64, 44)

looking more closely  rule.hasBorder() is true (rule.box() is null and
rule.hasNativeBorder() is true).

With fusion the base style returns QSize(42, 23) and stylesheet style expands
that to QSize(48, 29). Not sure why there is no visible difference but I have
no knowledge about the QStyleSheet implementation.
I am sorry but I think we need to send this back to Qt.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to