Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved WebView and eventFilter

    Mobile and Embedded
    webview android qml
    1
    1
    717
    Loading More Posts
    • 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.
    • Skroopa
      Skroopa last edited by

      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 Reply Quote 0
      • First post
        Last post