Bug 468309 - A QToolButton with an empty menu or no menu behaves unexpectedly
Summary: A QToolButton with an empty menu or no menu behaves unexpectedly
Status: ASSIGNED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (show other bugs)
Version: git-stable-Plasma/5.27
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-08 23:36 UTC by Loren Burkholder
Modified: 2023-04-20 00:38 UTC (History)
2 users (show)

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


Attachments
A sample app that demonstrates the problem (1022 bytes, text/x-c++src)
2023-04-08 23:36 UTC, Loren Burkholder
Details

Note You need to log in before you can comment on or make changes to this bug.
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