[Qt-interest] Pass mouse event through qt window

Martin Guillon MGuillon at movea.com
Fri Dec 11 10:00:04 CET 2009


HI,

I am trying to make my Qmainwindow transparent to mouse events. By that I mean that clicking on my window pass the mouse event to the window under it.
I tried using
setAttribute(Qt::WA_ShowWithoutActivating);
setAttribute(Qt::WA_TransparentForMouseEvents);

but it doesn't seem to work :s. My window doesn't get focus at start, but when I click on it seems to take the focus and the mouse event doesn't get propagated to the window under mine.

Any idea?

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091211/6804e2b8/attachment.html 


More information about the Qt-interest-old mailing list