Details
-
Bug
-
Resolution: Moved
-
P2: Important
-
None
-
5.11.3, 5.12.2, 5.12.4
-
macOS 10.14.4
Description
When a window is has a transparent background then it will not be rendered correctly and will be rendered black instead.
In the example attached, there are two approaches to reproducing this, one is to set a transparent background on a Window that is shown above the other. This will show the problem some of the time, but not every time and can be worked around by using:
QSurfaceFormat format; format.setAlphaBufferSize(8); QSurfaceFormat::setDefaultFormat(format);
The other approach which is commented out in the first Window is to change the background color from transparent to a solid white, this will then cause the second Window to have black instead of transparent pixels then.
Update: The workaround will cause other problems when on macOS 10.13 and having text that has an alpha channel, so depending on the setup, the workaround may or may not be viable.
Attachments
Issue Links
- is duplicated by
-
QTBUG-75827 [REG: 5.9 -> 5.12][macOS] Black window is shown on 10.14 Mojave when set "transparent" in color property
- Closed
- relates to
-
QTBUG-60822 [REG: 4->5] WA_TranslucentBackground cannot be changed after widget has been shown
- Closed
-
QTBUG-75827 [REG: 5.9 -> 5.12][macOS] Black window is shown on 10.14 Mojave when set "transparent" in color property
- Closed
- resulted in
-
QTBUG-80508 QSGGuiThreadRenderLoop uses single context for all windows
- Closed