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. LoadFinished() signal not emitted for currentFrame()

LoadFinished() signal not emitted for currentFrame()

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 1 Posters 1.3k Views
  • 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.
  • appollosputnikA Offline
    appollosputnikA Offline
    appollosputnik
    Banned
    wrote on last edited by
    #1

    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
    0
    • appollosputnikA Offline
      appollosputnikA Offline
      appollosputnik
      Banned
      wrote on last edited by
      #2

      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
      0

      • Login

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