Qt penetration multilayer mouse (transparent) window upper pane window, the mouse message to the lower layer

Mouse penetration Reference Method:

1. QWidget::setMask(QRegion(childrenRegion()));

The setAttribute 2. (the Qt :: WA_TransparentForMouseEvents , to true); // Set the attribute child window control can not respond to the mouse message

3. popup window transparent window

setWindowFlags(Qt::FramelessWindowHint | Qt::Tool);

setAttribute(Qt::WA_TranslucentBackground,true);

 

For animation child control, I do not know how to respond to mouse penetrate message?

Guess you like

Origin blog.csdn.net/smartgps2008/article/details/91626181