Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.14.0 Alpha
-
None
-
macOS Metal RHI
Description
I've just tried using the new RHI backend with a non-trivial application on macOS Metal. Very impressive!
However It looks like transparent toplevel windows are not yet supported. This also used to be a problem in QtQuick 2 early days (QTBUG-61909).
The following example uses a transparent window background with QSG_RHI=0 but a black background with QSG_RHI=1.
import QtQuick 2.12 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") color: "transparent" flags: Qt.Window | Qt.FramelessWindowHint Rectangle { height: 100 width: 100 anchors.centerIn: parent color: "red" } }
Setting QQuickWindow::setDefaultAlphaBuffer(true) early in main.cpp does not make any difference.
Attachments
Issue Links
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-78089 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
273339,4 | Request correct alpha composition on the rhi code path | 5.14 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
273344,10 | rhi: metal: Configure the layer's opaque property as appropriate | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |
273350,7 | rhi: d3d11: Fix enabling alpha compositing | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |