WebView and eventFilter
Unsolved
Mobile and Embedded
-
Tried to place
WebView
inside/outside (and many other combinations)MouseArea
andFlickable
- no events are sending, if I tap onWebView
. AlsoFlickable
don't flick on Android, but on Windows all works properly. Is there possible way to catch touch/mouse down events, when I interact withWebView
on Android?
Only thing, what I need, that user touches on the screen, whenWebView
is 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
WebView
in fullscreen mode,clicked()
emited properly, but on Android - no effect,eventFilter
simply not working.
Is it possible to catchQEvent::MouseButtonPress
orQEvent::TouchBegin
events on Android whenWebView
in fullscreen mode?