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

QMenu: popup-menu does not render properly if opened on external monitor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.4
    • None
    • MacOS, with at least two monitors attached
    • macOS

    Description

      To reproduce:

      1. Compile the attached trivial example program on a Mac (I used a MacBook M2 Pro running Ventura 13.3, although I suspect the exact Mac used doesn't matter)
      2. Attach a second monitor to the Mac, and in the MacOS "Display" settings, make sure that the second monitor is positioned "above" the default monitor in the virtual-monitor-layout (see first attached screenshot for an example)
      3. Run the compiled trivial example program
      4. Note that if you have the program's window on the primary monitor and click the "Click Me!" button, you get a context menu with 30 items in it, with the 15th item near the mouse pointer, as expected (see left-hand side of the second attached screenshot)
      5. Now move the window "up" to the external monitor and click the "Click Me" button again.  Note that the context menu appears but it is empty (see right-hand side of the attached screenshot)

      Expected behavior is that the context menu will correctly populate with the 30 data items regardless of what monitor the window is located in.

       

      Attachments

        1. External_Display_above_laptop_displaly.png
          699 kB
          Jeremy Friesner
        2. popup_bug_reproduced.png
          1.35 MB
          Jeremy Friesner
        3. popup_bug.zip
          2 kB
          Jeremy Friesner
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jfriesne Jeremy Friesner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes