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

A Window's background cannot be semitransparent anymore

    XMLWordPrintable

Details

    • bf0f1fa7d (dev), 87fdd0cf8 (6.5), fd56ad806 (dev), 941fb88d0 (6.6), 5a85af7e0 (6.5)

    Description

      I was migrating all the projects I've been working on from Qt5 to Qt6 to take advantage of the new Material 3 implementation in Qt Quick Controls, when I realized that all my splash screens and all the custom window decorations (rounded corners or translucid title bars) are broken.

      Check and run this simple example with the qml tool. At least on Microsoft Windows, the alpha channel is not respected anymore when used as window color:

      import QtQuick.Controls
      
      ApplicationWindow {
          width: 200
          height: 200
          visible: true
          flags: Qt.SplashScreen | Qt.WindowStaysOnTopHint
          color: "transparent" // this doesn't work in Qt 6.5.0
      }
      

      I've tried other flags and changing the color (e.g. #00FF0000) without success. It still shows a 200x200 semitransparent rectangle.

      Attachments

        Issue Links

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

          Activity

            People

              tvete Paul Olav Tvete
              ceperez1996 Carlos PĂ©rez
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: