Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT QWebEngineView : How to inject touch events (touchstart, touchmove, touchend) ?

QT QWebEngineView : How to inject touch events (touchstart, touchmove, touchend) ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 924 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.
  • R Offline
    R Offline
    raghavSrih
    wrote on 18 Aug 2017, 11:19 last edited by
    #1

    I would like to inject touch events such as "touchstart", "touchmove", "touchend" into the QWebEngineView. Then, I should be able to capture the events in my html page running in the webview for example using jquery like below :

    $(document).on("touchstart",function() {
    console.log("Touchstart");
    });
    I tried using QMouseEvents as explained in this SO answer and it works. But not the QTouchEvents.

    Any suggestions ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 18 Aug 2017, 12:31 last edited by
      #2

      Hi
      is setAttribute(Qt::WA_AcceptTouchEvents, true);
      set pr default for QWebEngineView ?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        raghavSrih
        wrote on 20 Aug 2017, 04:59 last edited by
        #3

        Hello,

        Yes. I have set that attribute to true already. Still doesn't work.

        Regards,
        Raghav

        1 Reply Last reply
        0

        2/3

        18 Aug 2017, 12:31

        • Login

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