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
    • 0abcb9bef (dev)
    • 2023wk50FOQtforAndroid, 2023wk52FOQtforAndroid, 2024wk48s3FOQtforAndroid

    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

        1. hack.png
          hack.png
          46 kB
        2. testQtBug5.zip
          12 kB

        Issue Links

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

          Activity

            People

              assam Assam Boudjelthia
              xalioth Fabien Chéreau
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes