Hello,

in order to get a modal dialog focused, I want to make a semi-transparent backgound, which greys out the main window of the qt application while editing the dialog. The problem is similar to http://www.qtcentre.org/threads/6171-graying-out-window .
However, the proposed solution is not good for me, because I dont want to have the background widows disabled (it is a lot of work to disable them when the dialog pops up and reactivate, when it gets closed and it lookes worser then the transparent grey full-screen background).

I have tried to create a full-screen widget in my QDialog:pen method and draw a Pixmap on that, but the widget was drawn behind the main window.

Does anybody have an idea how to do that.

Thanks for any help in advance,

Yevgen