[Interest] Mouse Double Click generates Tab and Hold Gesture Event
jnfo-c at grauman.com
Fri Jun 7 03:54:11 CEST 2013
I have a widget that accepts Mouse Double Click Events as well as Tab and
Hold Gesture Events. When I double click the widget it generates a Mouse
Double Click Event as well as a Tap and Hold Gesture Event. Here is the
basic code to test for a Tap and Hold Gesture (which works).
It seems like a bug to me. Can anyone confirm that? Does anyone have any
info about this?
if(e->type() == QEvent::Gesture)
QGestureEvent *event = static_cast<QGestureEvent*>(e);
if(QGesture *gest = event->gesture(Qt::TapAndHoldGesture))
runFunc(); // this gets called after double clicking the widget
More information about the Interest