[Qt-interest] Making part of QWebView as transaparent

Samuel Rødal sroedal at trolltech.com
Fri Dec 18 11:32:17 CET 2009


Nitin Mahajan wrote:

> When I punch a hole in the demo browser through setMask(), the mouse is rendered perfectly in the transparent area.
> 
> Is there a way to make some widget visible in a smaller part of that transparent area. When we make the area transparent using setMask().

I don't think you can override setMask() for child widgets. You would 
have to create a separate top-level widget instead, and make it 
translucent using WA_TranslucentBackground. It sounds like a better 
approach to just make the original top-level translucent instead.

--
Samuel



More information about the Qt-interest-old mailing list