QWebView not updated.


  • Banned

    [code]
    <select id="gameid" name="gameid" class="env" autocomplete="off" >
    <option value="187" aleph="A,D">??3(Diablo III)</option>
    <option value="229" aleph="A,D">??3(?????)</option>
    <option value="11" aleph="M,W">????(??)</option></select>
    [code]

    My HTML code is like above.. How can I set the option value 11 in my code. My snippet is below
    [code]
    QWebElement selectBox =
    m_WebView->page()->mainFrame()->findFirstElement("select[id=gameid]");
    selectBox.evaluateJavaScript("this.value='11';");
    [/code]

    But with this my webpage is not updating with 11 value.?? Please help.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.