I have a top-level parentless QWidget on top of which I have a bunch of other QWidgets(e.g. QPushButtons). I would like to make my QWidget act like it is transparent for mouse events. So when I click on the QWidget(but not on my buttons) I want my window to lose focus and something in the back to be selected(e.g. a Windows Explorer window if it happens to be in the back of my window). I also want my QPushButtons to continue processing mouse events.
Is this possible? I tried setting the Qt::WA_TranslucentBackground and Qt::WA_TransparentForMouseEvents on the widget but if I draw something on it, e.g. a QGraphicsDropShadowEffect the widget still processes mouse click events on the parts where QGraphicsDropShadowEffect draws on it.
Is this possible?
Regards!