Answer the question
In order to leave comments, you need to log in
Why don't touchscreen clicks work in a python browser (QtWebKit)?
Wrote the simplest browser in python through qt4 (QtWebKit). There are a number of elements (button links) on the only local page. When clicked, they change color. Everything works with the mouse. With the cursor moving, the links are highlighted but not clicked. When you open the same page in firefox, everything works with touch. Is there a problem with WebKit or is it necessary to somehow describe clicks on the wheelbarrow?
Answer the question
In order to leave comments, you need to log in
I solved the issue this way, for the QWebView () element I set the WA_AcceptTouchEvents attribute ...
self.html = QtWebKit.QWebView()
self.html.setAttribute(QtCore.Qt.WA_AcceptTouchEvents, False)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question