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

Qml WebView on Android eats touch events

    XMLWordPrintable

Details

    • Android
    • b4bc5c1c4 (dev), feb6f075d (6.6), 51702609c (tqtc/lts-6.5)

    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. main.qml
          7 kB
        2. myeventfilter.cpp
          1 kB
        3. myeventfilter.h
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            daljit97 Daljit Singh
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes