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

QQC Menu shows up on wrong display after changing primary display (adding/removing monitor to/from laptop via USB)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.9.2
    • QPA: Windows
    • None
    • Windows 7, 64-bits. Qt 5.9.2

      I have a laptop running Windows 7, 64-bits, with an Intel HD graphics card, and an external display (which is the main display). If I disconnect the main display, to similate undocking the laptop, my laptop changes to be the main display.

      I then start my Qt application, which appears in the middle of the laptop display, and connect the external display. The external display is changed back to be the main display again and the application appears in the middle of the external display. All is fine so far. 

      However, If I press the applications menu (QMenu), they appear on the right edge of the laptop display. So, for some reason QMenu doesn't know that the primary display has changed. If I move the application just a tiny bit, the problem is solved.

        1. external_primary_screen.txt
          4 kB
        2. laptop_primary_screen.txt
          4 kB
        3. Output_primary_screens.jpg
          Output_primary_screens.jpg
          103 kB
        4. qtbug64647_qmenu.zip
          2 kB
        5. qtbug64647.zip
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            johan_t Johan Telenius
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes