Page 1 of 1

Catch mouse events vlc 1.1.5 and Qt

Posted: 03 Dec 2010 06:12
by duva_
I'm using windows xp sp 3, QT 4.7.0 and vlc 1.1.5 and i can't catch the mouse clic events over the video in a widget.

i have also tryed the libvlc_video_set_mouse_input( mp, false). That works fine in Linux, but not with Windows :-|

Did i miss something?

anyone, any ideas?

Thanks in advance.

Re: Catch mouse events vlc 1.1.5 and Qt

Posted: 03 Dec 2010 18:06
by VLC_help
You might get better help from IRC channel.

Re: Catch mouse events vlc 1.1.5 and Qt

Posted: 03 Dec 2010 20:46
by Jean-Baptiste Kempf
Probably not implemented correctly on Win32

Re: Catch mouse events vlc 1.1.5 and Qt

Posted: 03 Dec 2010 22:24
by erwan10
Catching mouse events over the video on Win32 is possible, but not an easy task. (both vlc1.1.5 and vlc1.2)

VLC actually manages the video window in its own thread (with its own message queue). Therefore, the QT4 thread won't receive these events.

The Win32 API provides "global hooks" to spy on another message queue, and get a copy of those events (see http://msdn.microsoft.com/en-us/library ... 85%29.aspx). And it works very fine.

Perhaps QT4 offers some wrapper around these "global hooks" ?

Re: Catch mouse events vlc 1.1.5 and Qt

Posted: 08 Dec 2010 19:51
by duva_
Thanks for your time and answers =)