[Qt-interest] Making part of QWebView as transaparent
Nitin Mahajan
nitinm76 at yahoo.com
Tue Dec 15 15:04:18 CET 2009
HI,
--- On Tue, 15/12/09, Samuel Rødal <sroedal at trolltech.com> wrote:
> From: Samuel Rødal <sroedal at trolltech.com>
> Subject: Re: [Qt-interest] Making part of QWebView as transaparent
> To: nitinm76 at yahoo.com
> Cc: qt-interest at trolltech.com
> Date: Tuesday, 15 December, 2009, 6:23 PM
> 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.
>
You are right. I forgot to set mask on BrowserMainWindow. After doing that the transparency is fine.
Now I have a new problem. The Area where I punch a hole in webview,had a child widget. That widget is also not being shown now. I want to show that child widget with some transparency.
Can I get, some pointers towards this?
regards
-Nitin
> --
> Samuel
>
>
Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com.
http://mail.promotions.yahoo.com/newdomains/aa/
More information about the Qt-interest-old
mailing list