Qt – top level widget with keyboard and mouse event transparency?

I found the following solution (tested on Linux, also works on Windows according to @TheSHEEEP):

setWindowFlags(windowFlags() | Qt::WindowTransparentForInput);

It has been added in more recent qt release (i did not find when)
see http://doc.qt.io/qt-5/qt.html

Leave a Comment