PDA

View Full Version : QMouseEvent with two mice



yun
6th May 2009, 13:33
Hello everybody,

I am using two mice at same time. But somehow it doesn't work well.

If I use one mouse and press left and right key, mousePressEvent can catch both events, the same happens when I release them. When I use two mice, and press both left keys, mousePressEvent can catch both, but when I release them, mouseReleaseEvent only catch once. I guess it is the problem of, they are all recognized as the left key, so if one is released, system deal with it as this mouseEvent is done.

I think it can be solved as I use different keys of different mouse. But if anybody has better idea? Thank you in advance.

Lykurg
6th May 2009, 13:42
Please don't post the same topic twice! If someone know's the answer to your question he will answer. Even to a post that is 3 (!) hours old...