Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-137249

QML Screen.orientation on iOS does not provide all directions

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS

    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

        For Gerrit Dashboard: QTBUG-137249
        # Subject Branch Project Status CR V

        Activity

          People

            vestbo Tor Arne Vestbø
            ekkescorner Ekkehard
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: