Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt5 QWebView not properly responding to touch events
Forum Updated to NodeBB v4.3 + New Features

Qt5 QWebView not properly responding to touch events

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 1.3k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    hunternet93
    wrote on last edited by
    #1

    I'm using a simple kiosk web browser called "WCGBrowser":https://github.com/alandmoore/wcgbrowser/tree/qt5 written in PyQt5 using a QWebView, running on a Debian Testing machine with Qt5 version 5.1.1. The computer's only input device is a Quanta multitouch touchscreen, which is supported by the Evdev driver and works perfectly in most applications.

    However, when touching links, buttons, or other elements in a web page, the element visually responds as if it's been clicked, but doesn't perform it's associated action. For example, when on Google's homepage, tapping the search button shows the button being depressed, but doesn't actually change to the search page. Using a regular mouse on the same instance works as expected.

    My quick fix was to override the event method of the QWebVew to reject touch events, causing QT to generate mouse events instead. However, the mouse emulation doesn't work very well, users often accidentally select text or have other related issues. I'd like to get proper touch support working instead.

    This doesn't appear to be PyQt5 bug, it's either a QT bug or (somewhat more likely), a bug in the kiosk browser I'm using. I've done what debugging I can, does anyone have suggestions for what I can try to discover what's causing the problem? I'm a fairly experienced Linux user but new to QT, I'm fine with compiling QT devel if needed.

    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