[PyQt] distinguish / enable / disable multiple pointer devices

Hans-Peter Jansen hpj at urpla.net
Thu Mar 24 23:50:45 GMT 2011


On Friday 25 March 2011, 00:10:21 Gelonida wrote:
> Hi I have a small question,
>
>
> I have a PC (Windows) with a mouse, a touch screen and a graphics
> tablet.
>
>
> Is there any way to know with which device a widget was clicked?
>
> Is there any way to disable for example the touch screen events for
> one widget
> and the mouse events for another?

Try ignoring these events in the respective event handlers of your 
widgets subclasses. Note that some devices just emulate mouse events, 
these aren't distinguishable from real mouse events AFAIK.

Pete


More information about the PyQt mailing list