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

[Reg 6.5.3->6.5.2] Showing a secondary Window is broken: the second Window unexpectedly depends on the main Window position

    XMLWordPrintable

Details

    • Windows
    • 614e0f1da (dev), 19471b215 (6.6), 581eecd59 (6.5)

    Description

      A minimal reproducer:

      Have the following code as "SubWindow"

      import QtQuick
      
      Window {
          width: 400
          height: 300
          title: "Secondary window"
      }
      

      Then instantiate it in Main.qml:

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
          id: window
          width: 600
          height: 400
          visible: true
      
          Button {
              text: "Open secondary window"
              onClicked: secondary_window.show()
          }
      
          SubWindow{
              id: secondary_window
          }
      }
      

      Run application and click button, a second Window pops up.
      In Qt 6.5.2: Geometry of the second Window is independent from the main Window. Moving/resizing the main Window does not influence the second Window by any means.
      In Qt 6.5.3: Moving/resizing the main Window weirdly resizes the second Window. The behavior is totally unexpected and may cause crash in certain circumstances (reportedly QWindowsWindow::savedDpi).

      Attachments

        Issue Links

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

          Activity

            People

              timothee.keller Timothée Keller (Inactive)
              luqiaochen Luqiao Chen
              Votes:
              8 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes