Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.6.2, 5.9.4
Description
When the program starts, the last initial QResizeEvent is not correct on Android. I have to rotate the phone before I get the right dimensions. I have tested this on Debian 9, iOS and MacOS, all return the correct last initial QResizeEvent except Android. This issue happens with both a QWidget or QMainWindow as the primary window. A QBoxLayout is added via the QWidget's installEventFilter() to grab the resize. (example code attached.)
Output from attached code on Android....
// start app (should be portrait dimensions)
D libRotate.so: ../rotate/mylayout.cpp:15 (virtual bool myLayout::eventFilter(QObject*, QEvent*)): QSize(48, 48)
// last initial QResizeEvent - should be portrait dimensions
D libRotate.so: ../rotate/mylayout.cpp:15 (virtual bool myLayout::eventFilter(QObject*, QEvent*)): QSize(48, 48)
// then rotate to landscape
D libRotate.so: ../rotate/mylayout.cpp:15 (virtual bool myLayout::eventFilter(QObject*, QEvent*)): QSize(1776, 1008)
// then rotate to portrait
D libRotate.so: ../rotate/mylayout.cpp:15 (virtual bool myLayout::eventFilter(QObject*, QEvent*)): QSize(1080, 1704)