Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.9.2, 5.15.2, 5.15.3, 6.0.3, 6.1.0 Beta2
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.