WebView and eventFilter
-
Tried to place
WebViewinside/outside (and many other combinations)MouseAreaandFlickable- no events are sending, if I tap onWebView. AlsoFlickabledon't flick on Android, but on Windows all works properly. Is there possible way to catch touch/mouse down events, when I interact withWebViewon Android?
Only thing, what I need, that user touches on the screen, whenWebViewis in fullscreen mode.
I wrote some code for handlingeventFilter:bool MousePressEvent::eventFilter(QObject *o, QEvent *e) { if(e->type() == QEvent::MouseButtonPress) { qDebug() << "touch!"; QMetaObject::invokeMethod(socialNetworkAuthMenu, "showBottomTools"); emit clicked(); } return QObject::eventFilter(o, e); }On Windows, if
WebViewin fullscreen mode,clicked()emited properly, but on Android - no effect,eventFiltersimply not working.
Is it possible to catchQEvent::MouseButtonPressorQEvent::TouchBeginevents on Android whenWebViewin fullscreen mode?