QWebElement input click()
-
wrote on 27 Jan 2011, 17:50 last edited by
Greetings Trolls,
Just a quick post about Qt documentation :
http://doc.qt.nokia.com/4.7-snapshot/qwebelement.html
@QWebElement document = frame->documentElement();
/* Assume that the document has the following structure:<form name="myform" action="submit_form.asp" method="get"> <input type="text" name="myfield"> <input type="submit" value="Submit"> </form> */ QWebElement button = document.findFirst("input[type=submit]"); button.evaluateJavaScript("click()");@
I had to replace "click()" by "this.click()" to make it work on my side.
Thanks.
-
wrote on 27 Jan 2011, 19:46 last edited by
so what's the aim of creating this topic?
-
wrote on 27 Jan 2011, 22:02 last edited by
A bug report on http://bugreports.qt.nokia.com would be the best; not all Trolls read Qt DevNet ;-)
-
wrote on 27 Jan 2011, 22:24 last edited by
I'll take a look at this.
I did not know you could even report documentation glitches :D !
-
wrote on 27 Jan 2011, 22:35 last edited by
Sure you can. In the Qt project (QTBUG) there is a Documentation component to choose for you :-)
-
wrote on 30 Jan 2011, 12:02 last edited by
Done: http://bugreports.qt.nokia.com/browse/QTBUG-17029
Thanks :).
1/6