if( e->type() == QEvent::MouseButtonDblClick ) ...
bool MainWindow::event(QEvent *e){ if( e->type()!=QEvent::UpdateRequest) qDebug()<<e->type(); if( e->type() == QEvent::MouseButtonDblClick ) {............ } if( e->type() == QEvent::HoverMove ) {............ } return e->type() == QEvent::Gesture ? gesture( static_cast<QGestureEvent*>( e ) ) : QWidget::event( e );}
grabGesture(Qt::PinchGesture); grabGesture(Qt::TapAndHoldGesture); grabGesture(Qt::TapGesture);