Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.15.10
-
None
-
1. Ubuntu 20.04 x86 system.
2. Kylin 2303 ARM system.
3. Kylin 2303 x86 system.
4. UOS 20 ARM system.
Description
I am using Qt5.15 version on a Linux system and using the following code to respond to screen rotation actions:
```c++
connect(QGuiApplication::primaryScreen(), &QScreen::orientationChanged, [](Qt::ScreenOrientation orientation)
);
```
But I found that after rotating the screen from 0 degrees to 90 degrees in the "Control Panel" of the operating system, the orientionChanged code in the above code can respond normally, and the return value is: PortraitOrientation, Turning from 90 degrees to 0 degrees, orientionChanged can respond normally, and the return value is: LandscapeOrientation。
But when rotating from 90 degrees to 270 degrees or from 270 degrees to 90 degrees, the orientionChanged signal does not respond, which prevents me from capturing the rotation signal. To be precise, Inverted Portrait Orientation and Inverted Landscape Orientation have never been triggered.
I have tested the following systems and found this issue:
1. Ubuntu 20.04 x86 system.
2. Kylin 2303 ARM system.
3. Kylin 2303 x86 system.
4. UOS 20 ARM system.