I already set:
graphicsView->setAttribute(Qt::WA_AcceptTouchEvents);
graphicsView->viewport()->setAttribute(Qt::WA_AcceptTouchEvents);
graphicsView->grabGesture(Qt::PinchGesture);
graphicsView->viewport()->grabGesture(Qt::PinchGesture);
And I’m still unable to receive gestures on the sceneEvent
method of a QGraphicsItem
using Qt 5.1, does anyone knows why ?