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

Calling setGeometry for larger MDI window inside smaller MDI area causes the scroll bars to be adjusted incorrectly

    XMLWordPrintable

Details

    • Windows

    Description

      When moving larger MDI window inside a smaller parent MDI area using setGeometry(), the child window seems to be moved to the (0,0) position of the viewable part of the smaller parent window instead of the actual (0,0) position of the parent window. So, the scroll bars are seemingly adjusted incorrectly

      To reproduce, using MSVC, build and run the attached project and perform the following steps:

      1. Select "File > Add Big" from the menu
      -> a green window larger than the MDI area is displayed
      2. Scroll the MDI so that the bottom right corner of the green window is visible
      3. Select "File > Add Small" from the menu
      -> a yellow window smaller than the MDI area is displayed
      4. Click on the green window, this calls setGeometry(0, 0,…) on the green window
      -> The green window seems to be moved to the (0,0) position of the viewable part of the smaller parent window instead of the actual (0,0) position of the parent window. So, the scroll bars are seemingly adjusted incorrectly, there is a large unused area left and above the green window.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            foxxx Tuukka Kettunen
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes