Qml evaluatejavascript problem
QML and Qt Quick
1
Posts
1
Posters
1.2k
Views
1
Watching
-
wrote on 29 Mar 2013, 10:36 last edited by
Hello, I have Qml WebView and I'm trying to simulate a click event on a div.
the div is:
<div class="ih" ><div class="jh kh"></div></div>I have tried to simulate the click event in this way but it doesn't work:
@ Button{
onClicked: webView.evaluate("document.getElementsByClassName('ih').click()")
} @
Can someone help?
1/1