Bug 468309

Summary: A QToolButton with an empty menu or no menu behaves unexpectedly
Product: [Plasma] Breeze Reporter: Loren Burkholder <loren>
Component: QStyleAssignee: Plasma Bugs List <plasma-bugs>
Status: ASSIGNED ---    
Severity: minor CC: noahadvs, uhhadd
Priority: NOR    
Version: git-stable-Plasma/5.27   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A sample app that demonstrates the problem

Description Loren Burkholder 2023-04-08 23:36:10 UTC
Created attachment 157965 [details]
A sample app that demonstrates the problem

When a QToolButton that has an empty menu is displayed, it will show a standard button with a dropdown arrow; however, when this arrow is clicked, a 1px by 1px menu is displayed, which is not expected.

Similarly, a QToolButton with no menu set allows you to click the dropdown arrow, but nothing happens when the arrow is clicked.

I would propose that in both of these scenarios, the dropdown arrow should be made unclickable and drawn in the disabled style.

See the attached main.cpp for an example of this behavior.
Comment 1 Bug Janitor Service 2023-04-20 00:38:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze/-/merge_requests/309