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

Qt needs to support glass style backgrounds

    XMLWordPrintable

Details

    • Linux/X11, macOS, Windows

    Description

      It is official now: every desktop needs to have a glass background!

      Windows started this already with Aero.
      macOS Big Sur will expect native apps to have a glass background
      KDE apps are started to support a blurred background as well

      Please note that this is different from a transparent or translucent background. Transparent just means you can see through the window, glass background will actually blur the contents behind the window. This is normally done via the Window Compositor but it needs to be enabled in order to get this effect.

      For Qt on Windows, you can use the QtWin module to make a glass frame.
      For KDE, there is no way to do this via Qt so you have to write a crazy xprop hack to enable the _KDE_NET_WM_BLUR_BEHIND_REGION flag.
      As for macOS, you will have to write some Cocoa code to get that working.

      Rather than write a hack for each platform, Qt should provide a simple Window flag like "WA_GlassBackground" to make this effect cross platform.

      This is important because end users expect their desktop apps to look and feel like a native app rather than something foreign. Having this flag would make cross platform development much easier.

      Attachments

        1. 36403-67715-Home-App-in-macOS-Big-Sur-xl.jpg
          36403-67715-Home-App-in-macOS-Big-Sur-xl.jpg
          123 kB
        2. Aero_Example.png
          Aero_Example.png
          35 kB
        3. kdeBlurWindow.png
          kdeBlurWindow.png
          2.00 MB
        4. kdeTransparentWindow.png
          kdeTransparentWindow.png
          1.63 MB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              tshah Tej Shah
              Votes:
              7 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes