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

Qt6 won't render into cutout area (regression)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 RC
    • Fix Version/s: 6.3
    • Component/s: GUI: Window management
    • Labels:
      None
    • Platform/s:
      Android

      Description

      Consider a QQuickWindow in a fullscreen mode:

      window()->setVisibility(QWindow::FullScreen);

      and allow the window to extend into the DisplayCutout areas:

      WindowManager.LayoutParams attr = getWindow().getAttributes();
      attr.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
      getWindow().setAttributes(attr);
      

      Expected behavior (like in Qt 5.15): Quick item occupies full screen.
      Actual behavior in Qt 6.x: the item is not rendered into cutout areas, they are left filled with white color.

        Attachments

        1. fullscreen.jpg
          fullscreen.jpg
          43 kB
        2. image-2021-11-16-15-51-41-773.png
          image-2021-11-16-15-51-41-773.png
          322 kB
        3. Screenshot_20210927-115115[2].jpg
          Screenshot_20210927-115115[2].jpg
          183 kB
        4. Screenshot_20210927-115507.jpg
          Screenshot_20210927-115507.jpg
          176 kB
        5. Screenshot_20210927-115824.jpg
          Screenshot_20210927-115824.jpg
          180 kB
        6. Screenshot_20210927-120230.jpg
          Screenshot_20210927-120230.jpg
          189 kB
        7. Screenshot_20210927-120352.jpg
          Screenshot_20210927-120352.jpg
          186 kB
        8. Screenshot_20210927-120517.jpg
          Screenshot_20210927-120517.jpg
          184 kB

          Issue Links

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

            Activity

              People

              Assignee:
              qtandroidteam Qt Android Team
              Reporter:
              chainik Konstantin Dondoshanskiy
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes