Hi all,

I am having troubles with QGraphicsView and QGesture:

I am running this on windows 7, on a dell inspiron duo. I am using qt 4.7.1.

I have a myscene derived from QGraphicsScene and a view, not derived. If I do
view->viewport()->grabGesture(Qt::PanGesture) and reimplement event() in the scene, I do receive some gesture events, but not those expected...

The first problem is that in order to receive these events I have to move my fingers like if I am doing a "pinch" (i.e. with 2 fingers, enlarge or reduce movement). When I do that, the event I receive is in fact recognized as a pan gesture (i.e. event->gesture(Qt::PanGesture) returns something, which is quite normal since it is the only type of gesture grabbed). But if I do the finger movement for a pan (with only one finger), I receive nothing.

The second problem is that when I add view->viewport()->grabGesture(Qt::PinchGesture) I don't receive anything anymore, not even the "wrong" pan gestures. Seems like the events are eaten somewhere.

If I leave only grabGesture(Qt::PinchGesture) and remove the grab for PanGesture, same thing, I do not receive any gesture events.

I have tried to do grabGesture at the view level also and not only at the viewport level, but this didn't improve anything...

I have other non-qt applications on this PC, provided by Dell, and I can see that the touchScreen accepts and reacts to pan and/or pinch gestures in those applications, so I believe the hardware/drivers are ok.

Any idea about what I am doing wrong?