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

Top level QWidget size synchronization Issue when switching monitors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.3
    • GUI: Window management
    • None
    • macOS

    Description

      In our application, we utilize two windows in a toggle-like use case - showing one window should open the other window and vice versa. We intend for both windows to synchronize with each other, meaning that showing a window and performing actions such as moving, transforming, maximizing, etc., should affect the other window and display it in the same size and position as the preceding one.

      However, we've encountered an issue under specific conditions outlined in the repro steps, the window resizes to its previous size instead of maintaining the size and position changes from the other monitor with different DPI settings.

      This bug disrupts the expected behavior of window synchronization, particularly in multi-monitor environments with different DPI settings. The window should retain its size and position as influenced by the other window, regardless of the monitor or DPI setting changes.

      Steps to reproduce:

      • Open the application, you should be presented with a window titled "Window One".
      • Switch to the other window titled "Window Two" using the button.
      • Move the window over to another monitor.
      • Resize the displayed window to a much different size.
      • Switch to the other window using the button.
      • Drag/drop the window over to the other monitor.
      • Observe that the size is now updated to what was before the manual resize.

      Expected Result:

      The original window should maintain the same size and position as the other window, even when moved to a different monitor with varying DPI settings.

      Actual Result:

      The original window resizes to its previous size when switched back from a different monitor with varying DPI settings.

      Note:

      • This change is only tested on an M2 Pro with a secondary HP monitor.  
      • This needs to be tested on windows/linux as well.
      • qtbug-123924.zipadded to reproduce this issue.

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              kandass1 Senthil Kannan Kandaswamy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes