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

QWidget on secondary display jumps back to primary display first time in full-screen mode, not subsequent times

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.4.1
    • GUI: Window management
    • None
    • Windows 7 64-bit, Qt 5.4.1 32-bit

      Seen on Windows 7, Qt 5.4.1, 32-bit
      Steps to repro:

      1. Create 2 QMainWindow's on the same display
      2. QWidget::move() them both to the top-left position on both monitors of a 2 monitor system
      3. QWidget::showFullScreen() both QMainWindows into fullscreen mode
      4. The QMainWindow on the secondary display will jump back to the primary display
      5. QWidget::showNormal() both QMainWindows back to windowed-mode
      6. The QMainWindows will be back to their normal size at the top-left position of each monitor
      7. QWidget::showFullScreen() both QMainWindows into fullscreen mode again
      6. This time the QMainWindow on the secondary display will stay on the secondary display when in fullscreen mode.

      Not sure what the secondary QMainWindow is supposed to do - I'm QWidget::move()'ing it rather than QWindow::setScreen()'ing it - but the fact that it does something different the second time through seems wrong.

        1. app.cpp
          4 kB
        2. app.h
          0.6 kB
        3. app.pro
          0.1 kB
        4. main.cpp
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            tedmiddleton Ted Middleton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes