[Interest] How to have partially transparent widget on top that do not catch events

Nicolas Krieger nicolas.krieger at medecom.fr
Thu Jun 14 10:16:54 CEST 2018


Qt::WA_TransparentForMouseEvents is exactly what I was looking for ! 
Thank you.

Thank you all for your responses.

In attachment, screen captures of what I wanted.


Le 13/06/2018 à 11:59, Alejandro Exojo via Interest a écrit :
> On Wednesday 13 June 2018 10:53:05 Frederik Christiani via Interest wrote:
>> If I understand your problem correctly, you should be able to use a
>> QGraphicsEffect like this:
> This is indeed the nicest solution if you can use it in your application. But
> note that the widget is still subject to clipping from its parents. It could
> be possible that you need to add a widget on top, handle manually the resizing
> and positioning, and use the Qt::WA_TransparentForMouseEvents flag. Not nice,
> but it should work.
>

-- 
*Nicolas Krieger*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180614/001ce106/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nojoclpoipaocppe.png
Type: image/png
Size: 7209 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180614/001ce106/attachment.png>


More information about the Interest mailing list