Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.15.16
-
None
-
Windows with two monitors
-
-
70404a277 (dev), 55a5cc4c9 (6.6), 14c53291b (tqtc/lts-6.5)
Description
When using a QToolButton with a dropdown menu that is too long to fit either above or below the button, Qt attempts to reposition the menu to fit on-screen. However, in-multi-monitor setups, if neither the space above nor below the QToolButton is sufficient, the dropdown menu appears on a secondary monitor in a position that is disjointed from the button itself, causing a confusing user experience. The menu no longer visually relates to the QToolButton, making it difficult for the user to understand its origin and context.
Steps to Reproduce:
- Create a QToolButton with a dropdown menu containing many items
- Place the QToolButton near the top or bottom edge of the screen in a multi-monitor setup
- Trigger the dropdown menu when there is insufficient space both above and below the button
Expected Behavior: The dropdown menu should remain visually attached to the QToolButton, even if the screen space is limited. If necessary, the menu should be resized or repositioned in a way that preserves the visual relationship with the button
Actual Behavior: The dropdown menu appears disjointed, often on a secondary monitor, losing its visual connection to the QToolButton
Attachments
Issue Links
- duplicates
-
QTBUG-118695 popup menu on QToolButton displays at wrong screen
- Closed