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

Windows sub window resize issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.1
    • 6.6.0
    • QPA: Windows
    • None
    • Win 10 Pro: 19045.3930
    • Windows

    Description

      In both QtQuick and QtWidgets on Windows there is an issue where any sub window will be resized if the parent window is moved or resized. This issue does not occur on MacOS.

      See the following gif that demonstrates the issue. On the left side is a very simple QtQuick project and on the right is a very simple QtWidgets project (see attached files for code). As the top level window is moved or resized you should see that the sub window shrinks.

      I also noticed that on MacOS the sub windows will not follow the parent window but on Windows it does.

      Setting the `transitentParent` to null makes no difference for QtQuick but the issue does not appear for QtWidgets without setting the `transitentParent`.

      Attachments

        1. main_widgets.cpp
          0.4 kB
        2. Main.qml
          0.3 kB
        3. window-resize-issue.gif
          window-resize-issue.gif
          1.53 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            haiku Ollie Dawes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes