[PyQt] distinguish / enable / disable multiple pointer devices

2011-03-24 Thread Gelonida
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? Thanks

Re: [PyQt] distinguish / enable / disable multiple pointer devices

2011-03-24 Thread Wolfgang Rohdewald
On Freitag 25 März 2011, Gelonida wrote: 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? something like QKeyEvent, QMouseEvent, QTabletEvent, QTouchEvent and QWheelEvent? class MyWidget(QWidget):

Re: [PyQt] distinguish / enable / disable multiple pointer devices

2011-03-24 Thread Hans-Peter Jansen
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

Re: [PyQt] distinguish / enable / disable multiple pointer devices

2011-03-24 Thread David Boddie
On Friday 25 March 2011 00:10:21 +0100, Gelonida wrote: 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? If the widget interprets a mouse click, screen touch or a press on the tablet as mouse events then