[Qt-interest] Thoughts about QGestures

Guido Seifert Wargand at gmx.de
Tue May 18 08:50:53 CEST 2010


Hi,
yesterday I played a bit with QGestures. When I tried to run the imagegestures examples I was at first very surprised that it did nothing for me. Somehow I expected that though I have no touch screen it had to work with mouse also. After some 'research' I found that QMouseEvents and QTouchEvents are two totally different things. 

Nevertheless, after some googling I found that I am not the only one who fell into this trap. So I'd recomment to make the documentation a little bit more clear there.

Furthermore, would it be impossible to 'enhance' QSwipeEvents and QPanEvents so that they work using QMouseEvents and QTouchEvents? I am well aware that there are limits to the interchangeability of mouse and touchscreen usage, but at least for single touch gestures it should be possible. I see no general problem that e.g. the QSwipeEvent could not be sent when I swipe with the mouse pointer. 

This would have the advantage that an application, which was developed for touch screens would automatically also work for desktops using a mouse. 

If you Trolls want to keep your swipe/pan events as simple and clean as it is now, which certainly would be a very reasonable decision, would it be at least possible that you could provide a QMouseSwipeEvent/QMousePanEvent? This would also easily allow to write apps, which make no difference between mouse and touch screen gestures.

Regards,
Guido

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01



More information about the Qt-interest-old mailing list