Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QWebView values are updated but correspondingly its not updating on click.
Forum Update on Tuesday, May 27th 2025

QWebView values are updated but correspondingly its not updating on click.

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 639 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    appollosputnik
    Banned
    wrote on 24 Jun 2013, 06:44 last edited by
    #1

    [code]
    QWebElement selectBox2 =
    m_WebView->page()->mainFrame()->findFirstElement("select[id=hostid]");
    selectBox2.setFocus();
    selectBox2.evaluateJavaScript("this.selectedIndex = 2");

    QWebElement button_click = m_WebView->page()->mainFrame()->findFirstElement("input[type=submit]");
    if(button_click.isNull())
        return;
    button_click.evaluateJavaScript("this.click()");
    

    [/code]
    Please check the snippet above. I am able to make a selection from the option and able to click. But it seems the selection is not updated in QWebView. So when it's click it doesnt show me the updates. I think although I can see in QWebView the values are changed but it's not updated with the changed values.
    Please help me whats going wrong in this... Thanks Sujan

    1 Reply Last reply
    0

    1/1

    24 Jun 2013, 06:44

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved