PDA

View Full Version : Making some part of window transparent



yogeshm02
26th March 2006, 15:30
Hi

I'm trying to emulate skinning functionality available in e.g. WMP and Winamp.
I know that to make some part of the window transparent setMask() is used. But what about the case where background of main window changes dynamically e.g. when using the concept of drawers.
I'm getting this to work but it seems like I've implemented an inefficient method (may also be impractical).
How should I do this?

Let the widget responsible for alteration in background call some method like updateMask() (this is what I've implemented)
Determine somehow when is the time to update mask.
Some other method?


So, I want your hints/suggestions about this.

Thanks

wysota
27th March 2006, 20:36
How about just creating a new QStyle implementation?