Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9.0
-
Qt 6.9
iOS 18.5
macOS 15.5
Xcode 16.3
Description
On iOS rotating from Portrait into Landscape Screen.orientation always gives Orientation 2 and angleBetween() 270
doesn't matter rotating to the left or right direction
on Android all is OK:
rotate left: orientation 2, angle 270 (notch left side)
rotate right: orientation 8, angle 90 (notch right side)
background: SafeAreas from Qt 6.9 on iOS in Landscape report same margins left and right.
(see 1st comment at https://bugreports.qt.io/browse/QTBUG-135808)
My customers need as much space as possible - per ex List of OrderPositions
So in Landscape I only want to respect SafeAreas where's the notch and use the space on the other side for data.
So it would be good to know if the notch is at left or right side
In Qt 5.15 this was working on iOS
Workarounds:
For now I'll instruct customers to always rotate to the left from Portrait to Landscape and I'll ignore SafeArea on the right
also in info.plist I can reduce the allowed orientations (have to test if all still works as expected)
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-137249 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
649610,1 | iOS: Report inverted screen orientations via windowScene orientation | dev | qt/qtbase | Status: NEW | +2 | 0 |
649611,1 | iOS: Always update screen properties on status bar orientation change | dev | qt/qtbase | Status: NEW | 0 | 0 |