S
S
Stanislav Somov2016-02-11 13:40:31
Python
Stanislav Somov, 2016-02-11 13:40:31

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

1 answer(s)
S
Stanislav Somov, 2016-03-01
@DarkDemon

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 question

Ask a Question

731 491 924 answers to any question