Qt/QML - How to customize Popup dimming effect?

1.1k views Asked by At

Hi is there a way to customize the dimming effect of the Popup when modal === true? I want the surrounding area of the Popup to be dimmed more.

1

There are 1 answers

0
JarMan On BEST ANSWER

You can customize the dimming effect by overriding the Overlay.modal attached property. See the docs here

Popup {
    id: popup
    width: 400
    height: 400
    modal: true
    visible: true

    Overlay.modal: Rectangle {
        color: "#aacfdbe7"  // Use whatever color/opacity you like
    }
}