[Interest] Mouse Double Click generates Tab and Hold Gesture Event
Joshua Grauman
jnfo-c at grauman.com
Fri Jun 7 03:54:11 CEST 2013
Hello all,
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?
Thanks!
Josh
if(e->type() == QEvent::Gesture)
{
QGestureEvent *event = static_cast<QGestureEvent*>(e);
if(QGesture *gest = event->gesture(Qt::TapAndHoldGesture))
{
if(gest->state()==3)
runFunc(); // this gets called after double clicking the widget
return true;
More information about the Interest
mailing list