[Interest] QWebView problem

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Sat Jun 22 14:48:41 CEST 2013


    To select 2 options I do the following. And also click. But the values
in my QWebView are not changing based on this. Please help whats wrong
going on.

     QWebElement selectBox =

 m_WebView->page()->mainFrame()->findFirstElement("select[id=gameid]");

    selectBox.setAttribute("value", "187");

    QWebElement selectBox2 =

 m_WebView->page()->mainFrame()->findFirstElement("select[id=hostid]");

    selectBox2.setAttribute("value", "24351");


    QWebElement button =
m_WebView->page()->mainFrame()->documentElement().findFirst("input[type=button]");
    button.evaluateJavaScript("this.click()");

-- 
Thanks & Regards
Sujan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130622/0a4fd535/attachment.html>


More information about the Interest mailing list