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:
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.