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