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

QtQuick apps move top and left after device rotation with opened FileDialog on an iPhone

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      iPhone 11 (iOS 14.6)
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      Repro steps:

      1) Open FileDialog (which is shown as PopOver on iPhones) while device is in Portrait orientation 

      2) Rotate device to change orientation to Landscape

      3) Close FileDialog or pick something

       

      As you can see at attached photo Main Scene moved top and left.

      Also I did some tests and noticed that in normal situation (when device rotates without FileDialog over the scene) QPlatformWindow::safeAreaMargins() returns QMargins(44, 0, 44, 21) as [[UIApplication sharedApplication].keyWindow safeAreaInsets] does. But in this particular case QPlatformWindow::safeAreaMargins() returns QMargins(0, 0, 0, 0) unlike [[UIApplication sharedApplication].keyWindow safeAreaInsets] which returns (top = 0, left = 44, bottom = 21, right = 44)

       

        Attachments

        1. iPhone11_after_rotation.png
          iPhone11_after_rotation.png
          26 kB
        2. QmlTest.zip
          2 kB
        3. RPReplay_Final1625657029.mp4
          3.97 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            rapotkinnik Nikolay Rapotkin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes