WebView and eventFilter



  • Tried to place WebView inside/outside (and many other combinations) MouseArea and Flickable - no events are sending, if I tap on WebView. Also Flickable don't flick on Android, but on Windows all works properly. Is there possible way to catch touch/mouse down events, when I interact with WebView on Android?
    Only thing, what I need, that user touches on the screen, when WebView is in fullscreen mode.
    I wrote some code for handling eventFilter:

    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 catch QEvent::MouseButtonPress or QEvent::TouchBegin events on Android when WebView in fullscreen mode?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.