How to make a child widget be transparent for mouse events?
-
I have a widget named X, which is a direct child of a QScrollArea. X has a layout, and there is widget named Y in this layout.
Setting Qt::WA_TransparentForMouseEvents for widget X works, but then other widgets in X's layout are not clickable, which is a problem for me.
But if I set Qt::WA_TransparentForMouseEvents only for widget Y, then it doesn't work, I don't now it is intentional or a bug.
How to make widget Y be transparent for mouse events? -
@fokhagyma said in How to make a child widget be transparent for mouse events?:
But if I set Qt::WA_TransparentForMouseEvents only for widget Y, then it doesn't work
"Doesn't work" is not a helpful description of the issue. What happens exactly?
Ideally you create a minimal example which reproduces your situation below.