0

我想将“touchstart”、“touchmove”、“touchend”等触摸事件注入QWebEngineView。然后,我应该能够捕获在 webview 中运行的 html 页面中的事件,例如使用 jquery,如下所示:

$(document).on("touchstart",function() {
  console.log("Touchstart");
});

我尝试按照此SO 答案中的说明使用 QMouseEvents并且它有效。但不是 QTouchEvents。

有什么建议么 ?

4

0 回答 0