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

QWindow setScreen doesn't actually change the screen (works fine in Qt 5.0.2)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.1.0 Beta 1
    • Fix Version/s: 5.1.0 RC1
    • Component/s: GUI: Window management
    • Labels:
      None
    • Environment:
      Windows 7-32 bit, MinGW47_32, Qt 5.1.0 Beta 1
      Linux 64-bit; any Qt up to and including 5.1.0 and current dev branch
    • Commits:
      8078a04e1950d1e9957c3b3c3ea8e6e0c3d34b80 ( b94fe52f85056ec7c597458aa5e2884de06f4a1b )

      Description

      Create a 2-window application. We want to display each window full screen on each monitor (assume 2 monitors is available)

      // Get a list of the available screens
      QList<QScreen*>screenList = app.screens();

      Window 1 has the following code to set it to display on screen 0
      window1.setScreen(screenList.at(0));

      Window 2 has the following code to set it to display on screen 1
      window2.setScreen(screenList.at(1));

      Each window is shown using the "showFullScreen()" command.

      This works fine with Qt 5.0.2 but since Qt5.1.0 beta 1, the setScreen function has no effect, with each window displaying on screen 0 only.

      Switching Kits between Qt 5.0.2 and Qt 5.1.0 beta1 confirms the behaviour is only present in Qt 5.1.0 beta 1.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              miketrahearn Mike Trahearn
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes