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

[Reg 6.8->6.9] Windows: Semi-transparency broken for frameless windows with OpenGL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.9.0
    • QPA: Windows
    • None
    • Windows
    • Windows

    Description

      During the process of implementing a custom window using Qt.FramelessWindowHint, I found that when using OpenGL as the backend of the RHI, setting a color that includes an alpha channel for the window has no effect. This happens only on windows platform, since Qt6.9.0.

      The demo code:

       

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          flags: Qt.Window | Qt.FramelessWindowHint
          color: "#800000FF"
      } 

       

       

      Create a new "Qt Quick Application" with the QtCreator, replace the code in Main.qml, and run the compiled app with "QSG_RHI_BACKEND=opengl" environment. 

      Attachments

        1. demo.zip
          2 kB
          mapleroid
        2. screenshot.png
          27 kB
          mapleroid
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            mapleroid mapleroid
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes