[Qt-interest] Making part of QWebView as transaparent

Samuel Rødal sroedal at trolltech.com
Tue Dec 15 13:53:49 CET 2009


Nitin Mahajan wrote:
> Hello,
> 
> I am trying to make a part of QWebView as transparent using setMask(). I am doing this experiment with the demo browser.
> 
> The demo browser is allowed to run for some time.Later some region of web view is made transparent using setMask(). 
> 
> What I find is that the region where a whole should have been punched remains white, instead of becoming transparent. Can some one help me with this?
> 
> regards
> 
> -Nitin

Are you sure you're using setMask() on a top-level widget? Otherwise 
there won't be any transparency as there'll be another widget behind.

--
Samuel




More information about the Qt-interest-old mailing list