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

[Regression 6.8.3 -> 6.8.4] A transparent Window cannot be rendered properly if backend is OpenGL

XMLWordPrintable

    • Windows
    • e413c726c (tqtc/lts-6.8)

      A minimal snippet:

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          color: "transparent"
          flags: Qt.FramelessWindowHint
      
          Text {
              anchors.centerIn: parent
              text: "Hello World!"
              font.pixelSize: 30
          }
      }
      

      With 6.8.4, the default Direct3D result looks like:

      Transparent background with text visible. Perfect.

      With 6.8.4, the result of

      QQuickView::setGraphicsApi(QSGRendererInterface::OpenGL);
      

      looks like:

      Well, you can't see anything. It is completely black.

      The problem does not happen back in 6.8.3. Both OpenGL and Direct3D render the window as expected.

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

            owolff Oliver Wolff
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes