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

Android: Layout in display cut mode being overridden to default edges always

    XMLWordPrintable

Details

    • Android
    • 2023wk50FOQtforAndroid, 2023wk52FOQtforAndroid, 2024wk2XFOQtforAndroid

    Description

      Since Qt 6.6.1, an android full screen apps using the "_SHORT_EDGES" mode (i.e. using the display space around the camera/notch) is not working properly, even when using a Java workaround as suggested in QTBUG-114437.

       - Basically it's now impossible to use LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES in a clean way, even using the Java workaround because the new Qt code always first set _DEFAULT when the app is put in fullscreen. My custom java code tries to re-set it back to _SHORT_EDGES right after, but the end result is that the app now flickers each time it is set to fullscreen (first "_DEFAULT" immediately followed by "_SHORT_EDGES").

       - Additionally, and I don't really understand why yet, when the app is in fullscreen in "_SHORT_EDGES" mode, when the virtual keyboard is brought up by pressing a text edit, the mode seems to be reverted back to "_DEFAULT" as well, which also looks like a regression. This usually happens only the second time the TextEdit is pressed.

      I attach a full sample, also showing how to implement the workaround described in QTBUG-114437

      Note that this bug is also related to QTBUG-96877, but the code created to fix QTBUG-114437 essentially reverted it. So as suggested by Rami I create a new report here.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtandroidteam Qt Android Team
              xalioth Fabien Chéreau
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes