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

Submenu placed on wrong screen if parent touches screen edge

    XMLWordPrintable

Details

    • 9ec028071409410dba192ec1c1e228cf3aea224b

    Description

      I have a dual monitor setup. When I open a QMenu (eg. context menu) and it touches the right corner of the right screen, submenus open on the right corner of the left screen rather than to the left of their parent.
      If the sub menu is even just a single pixel away from the corner of the screen the menu is properly positioned left of its parent.

      Submenus of the misplaced submenu are also misplaced, opening right of their parent (ie. at the left corner of the right screen, rather than - again - left of their parent); not sure if this is intentional, though, as the menu wouldn't be torn apart.

      xrandr -q:

      Screen 0: minimum 320 x 200, current 3600 x 1200, maximum 16384 x 16384          
      DisplayPort-0 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm                                                            
         1920x1200     59.95*+                                                         
         1920x1080     60.00    50.00                                                  
         1680x1050     59.88                                                           
         1600x900      60.00                                                           
         1280x1024     60.02                                                           
         1440x900      59.90                                                           
         1280x800      59.91                                                           
         1280x720      60.00    50.00    59.94                                         
         1024x768      60.00                                                           
         800x600       60.32    56.25                                                  
         720x576       50.00                                                           
         720x480       60.00    59.94                                                  
         640x480       60.00    59.94                                                  
      HDMI-0 disconnected (normal left inverted right x axis y axis)                   
      DVI-0 connected 1680x1050+1920+0 (normal left inverted right x axis y axis) 434mm x 270mm                                                                         
         1680x1050     59.88*+                                                         
         1280x1024     75.02    60.02                                                  
         1152x864      75.00                                                           
         1024x768      75.08    60.00                                                  
         800x600       75.00    60.32                                                  
         640x480       75.00    60.00                                                  
         720x400       70.08          

      Attachments

        1. qmenumisplaced.jpg
          167 kB
          Kai Uwe Broulik
        2. submenuplacement.zip
          0.9 kB
          Kevin Krammer
        3. displaced_popup.png
          413 kB
          Ken Aaker
        4. Screenshot_20180617_142220.png
          371 kB
          Ken Aaker
        5. tooltip_offset4.png
          76 kB
          Alexander Kempen
        6. tooltip_offset7.png
          369 kB
          Alexander Kempen
        7. tooltip_offset8.png
          200 kB
          Alexander Kempen
        8. tooltip_offset8.png
          200 kB
          Alexander Kempen
        9. tooltip_offset7.png
          369 kB
          Alexander Kempen
        10. cap.mkv
          3.05 MB
          Nathan Schulte
        11. cap.mp4
          9.08 MB
          Nathan Schulte

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              broulik Kai Uwe Broulik
              Votes:
              13 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes