Pregunta

I tried with QGraphicsOpacityEffect applied to the QDialog, but the result is a half gray widget and I cannot see the background and the activity behind, top-level widget.

¿Fue útil?

Solución

Use the setWindowOpacity function.

The valid range of opacity is from 1.0 (completely opaque) to 0.0 (completely transparent).

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top