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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.10.0
    • 6.9.0
    • QPA: Windows
    • None
    • Windows

      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. 

        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.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes