Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.15.15, 6.2.10, 6.5.3, 6.6.0
-
ef8bde838 (dev), c8ce47f8d (6.6)
Description
Code
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 Window { id: window width: 640 height: 480 visible: true Text {text: "Hello"} Popup { id: popup anchors.centerIn: parent width: 320 height: 240 modal: false dim: true closePolicy: Popup.NoAutoClose Text { anchors.centerIn: parent text: "World" } Overlay.modeless: Rectangle { color: "blue" opacity: 0.5 // color: "#770000ff" // WORKAROUND } } Component.onCompleted: popup.open() }
Expected Outcome
The dimming overlay is translucent, so we can see the text "Hello"
Actual Outcome
The dimming overlay is opaque, so we cannot see the text "Hello"
Workaround
Instead of setting opacity, give the color an alpha channel
Attachments
For Gerrit Dashboard: QTBUG-118461 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
516516,1 | Document overlay opacity limitation | dev | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |
516590,6 | Popup: fix fading in and out of the dimmer | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
516989,2 | Popup: fix fading in and out of the dimmer | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |