-1

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.

user1414724
  • 29
  • 1
  • 6

1 Answers1

2

Use the setWindowOpacity function.

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

pnezis
  • 12,023
  • 2
  • 38
  • 38