[Interest] How to have partially transparent widget on top that do not catch events
Alejandro Exojo
alex at vikingsoftware.com
Wed Jun 13 11:59:56 CEST 2018
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.
--
Viking Software, Qt and C++ developers for hire
http://www.vikingsoftware.com
More information about the Interest
mailing list