Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129993

QToolButton Popup Menu Shows in Secondary Monitor

XMLWordPrintable

    • Windows
    • 70404a277 (dev), 55a5cc4c9 (6.6), 14c53291b (tqtc/lts-6.5)

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            wenyen Wen Yen Kok
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes