Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.1
-
None
-
-
a6b78e6f4 (dev), 52bb40a08 (6.8), d977924ac (6.7)
-
2024wk24s2FOQtforAndroid
Description
Since Qt 6.7.0 the resizing of the Application WIndow is somewhat broken on Android.
When using either the pop-up view or split screen view the windows does not get resized correctly under all circumstances. Whereas this worked before with Qt 6.6.2.
This seems to be caused by the check in QtRootLayout::onSizeChanged
if ((realMetrics.widthPixels > realMetrics.heightPixels) != (w > h)) { // This is an intermediate state during display rotation. // The new size is still reported for old orientation, while // realMetrics contain sizes for new orientation. Setting // such parameters will produce inconsistent results, so // we just skip them. // We will have another onSizeChanged() with normal values // a bit later. return; }
Once the aspect ratio of the Application Window differs from the ratio of the screen, it will not get resized at all. The check was (re)introduced in https://codereview.qt-project.org/c/qt/qtbase/+/522806 to QtLayout and moved to QtRootLayout in https://codereview.qt-project.org/c/qt/qtbase/+/506555.
I have attached a simple MWE consisting of 3 rectangles of equal height and two quick screencasts showing the issue. In resizeBroken_671.mp4 the Application Window resizes correctly when it gets taller but once it gets small only the top most rectangle is visible and part of the second one. The third is not visible at all. resizeWorking_662.mp4 shows the correct behavior with Qt 6.6.2.
Attachments
Issue Links
- mentioned in
-
Page Loading...