Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. WebView and eventFilter

WebView and eventFilter

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
webviewandroidqml
1 Posts 1 Posters 863 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SkroopaS Offline
    SkroopaS Offline
    Skroopa
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved