Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69801

Qml WebView on Android eats touch events

    XMLWordPrintable

Details

    • Android

    Description

      I know that it is not possible to overlap a qml WebView with other qml components, however there should be a way to at least handle touch events (scrolling and flicking). For example, if I have the following code:

      SwipeView{
          WebView{
              id: webView
          }
          Item{
              id: myItem
          }
      }

      It is possible to "swipe" in a desktop application, but on Android the WebView eats all the touch events and the SwipeView does not receive the touch signals. It is currently impossible to detect whether the user is touching the WebView. 

      This makes it impossible to for example implement common ui pattern like "swipe ---->" to go back (which is fundamental on a platform like iOS) when using a WebView.

       

      Attachments

        1. myeventfilter.cpp
          1 kB
        2. myeventfilter.h
          1 kB
        3. main.qml
          7 kB

        Activity

          People

            stromme Christian
            daljit97 Daljit Singh
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: