- 
    Bug 
- 
    Resolution: Fixed
- 
    P1: Critical 
- 
    6.2.0 Alpha
- 
        
- 
        7a9bc220c (dev), d69e226e3 (dev), 954f2f5b3 (6.10), 37926c5d4 (6.9), ffc292ca7 (tqtc/lts-6.8)
- 
        Team One Foundation Sprint 52, Team A Foundation Sprint 53
I use QScreen::orientationChanged() signal to detect screen rotation on Android device.
The signal is emitted normally and reports a correct orientation. However, when I try to request the actual screen size, I see some inconsistency.
I thought that I might have to wait for the resizeEvent(), to get the updated screen size, but it is also inconsistent.
See the log below:
1. resizeEvent() QSize(833, 387) Screen size: QSize(914, 411) 2. Orientation change: Qt::LandscapeOrientation Screen size: QSize(914, 411) 3. resizeEvent() QSize(881, 411) Screen size: QSize(411, 914) 4. Orientation change: Qt::PortraitOrientation Screen size: QSize(411, 914) 5. resizeEvent() QSize(411, 833) Screen size: QSize(411, 914) 6. Orientation change: Qt::LandscapeOrientation Screen size: QSize(411, 914) 7. resizeEvent() QSize(411, 890) Screen size: QSize(914, 411) 8. resizeEvent() QSize(833, 387) Screen size: QSize(914, 411)
As it can be seen from lines 4 and 6, the screen size for the Portrait and Landscape orientation is reported to be the same (which is, of course, incorrect).
Also lines 3 and 7 show inconsistency in the widget size reported by resizeEvent, and the screen size. 
I'm attaching a simple project to reproduce the issue.