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

Windows: Window maximizes to primary monitor when launched on secondary monitor (in multimonitor setup)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.4.0
    • Fix Version/s: 5.4.2
    • Component/s: QPA: Windows
    • Labels:
      None
    • Environment:
      Windows, MSVS and MinGW
    • Commits:
      b3fc5e1ea3eb4fe838ac716aaca4efaa5de5a814 (qtbase/5.4, 6.2.2015, 5.4.2)

      Description

      I have problem with fullscreen on secondary monitor.
      In my test is the second monitor on left (-1280)

      This work well in 4.8.6 & 5.3.2

      When I used show() on secondary monitor, its show on defined point. But when I use switch to fullscreen window jump to primary.

      What happend :
      1) show() = secondary monitor
      2) switch by showFullScreen() = jump to primary
      3) swicth by showNormal() = jump to secondary
      4) switch by showFullScreen() = stay on secondary

      Test project attached.

        Attachments

        1. main.cpp
          0.2 kB
        2. mainwindow.cpp
          0.8 kB
        3. mainwindow.h
          0.4 kB
        4. qtbug44070.zip
          4 kB
        5. WFS_test.pro
          0.3 kB

          Issue Links

          For Gerrit Dashboard: QTBUG-44070
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              ritchie Richard Patek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: