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

add QML API for window mask

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The mask could perhaps be an image (where alpha < threshold makes that part of the window transparent) or a Shape or some sort of rendered layer or maybe just any part of the window that is transparent.

      Since most window systems do compositing, it's already been possible to have visually transparent windows since Qt 5.0. And since 5.11, a MouseArea or a Pointer Handler can avoid handling events outside a masked shape (using Item.containmentMask). But setting the window mask would allow the mouse and touch events to fall through; and it would also provide visual masking on non-compositing window managers.

      This isn't very urgent since it's easy enough to do in C++ already. But we have a number of open bugs about window masking not working correctly on various platforms and in various situations. Making the mask available in QML would exacerbate those.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change