Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    LoadFinished() signal not emitted for currentFrame()

    Qt WebKit
    1
    2
    1190
    Loading More Posts
    • 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.
    • appollosputnik
      appollosputnik Banned last edited by

      I am trying to capture the loadFinished() signal of QWebFrame. check the snippet below

      [code]
      connect(m_WebView->page()->currentFrame(), SIGNAL(loadFinished(bool)), this,
      SLOT(LoadFinishedCB3()));

      button_click2.at(48).evaluateJavaScript(
                  "var evObj = document.createEvent('MouseEvents');evObj.initEvent( 'click', true, true );this.dispatchEvent(evObj);"
                  );
      

      [/code]

      but this signal is not emitted. I think the currentframe is already loaded. When the button click event is executed a new frame is loaded. But how can I get that frame so that I can connect to loadFinished().

      Please help.

      1 Reply Last reply Reply Quote 0
      • appollosputnik
        appollosputnik Banned last edited by

        My problem is solved I am using a QTimer with singleshot for updating the site with click. Then it comes ok I am able to fetch data using QWebElement . Thanks a lot friend.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post