[Qt-interest] transparent child blocking events to the parentwidget.
Samuel Rødal
sroedal at trolltech.com
Wed Jan 13 13:47:32 CET 2010
manish.s.sharma at nokia.com wrote:
> How about having some widgets in the transparent widget and want them to receive events then if i set WA_TransparentForMouseEvents I will never will be able to click on the transparent widgets child widgets. And if I remove WA_TransparentForMouseEvents the flag I will never will be able to click on to the widget which is parent of this transparent widget. Can we achieve both the functionalities? One way to do this is that we can launch the transparent widget as a separate window then it works. But can we do it having child and parent? Or is there some missing functionality in Qt.
>
> Regards,
> Manish
I believe whether the events get delivered through transparent areas is
windowing system dependent, and out of Qt's control. You can try using
setMask() in addition to translucent background to mask out the
completely transparent areas, I think the events are more likely to be
delivered to the background widget in that case.
--
Samuel
More information about the Qt-interest-old
mailing list