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

QtQuick transparent toplevel window broken in dev

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.10.0 Alpha
    • 5.10
    • Quick: Other
    • None
    • macOS 10.11

    Description

      While playing around with a recent build of dev (82bdc55bc36f8a785e2637b01cb91d361b01fc29), I've noticed that toplevel window transparency for QQuickWindow seems to have stopped working (at least on macOS, haven't tried Windows so far).

      Example application:

       

      import QtQuick 2.7
      import QtQuick.Window 2.0
      import QtQuick.Controls 1.1
      
      ApplicationWindow {
          id: backlight
          flags: Qt.FramelessWindowHint
          visible: true
          title: qsTr("transparent")
          width: 500
          height: 50
          x: (Screen.width - width) / 2
          y: (Screen.height - height) / 2
          color: "transparent"
      
          Rectangle {
              anchors.centerIn: parent
              width: parent.width
              height: 50
              color: "transparent"
      
              Rectangle {
                  anchors.fill: parent
                  radius: 25
                  opacity: 0.3
                  color: "gray"
              }
          }
      }
      

      Window is transparent with 5.9 but opaque with dev.

      Setting QQuickWindow::setDefaultAlphaBuffer(true) before creating any window does not help and is not necessary on 5.9 anyway.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            njeisecke Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes