Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Force QWebEnginePage to reload after url changed
Forum Update on Monday, May 27th 2025

Force QWebEnginePage to reload after url changed

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • thamT Offline
    thamT Offline
    tham
    wrote on last edited by tham
    #1

    I am trying to scrape images search by Bing search, now I have a serious problem, whenever I change the url by clicking on the image, the signal "urlChanged" emit, but the signal "loadPageFinshed" wouldn't emit, how could I forced the page reload when url changed?

    jsulmJ 1 Reply Last reply
    0
    • thamT tham

      I am trying to scrape images search by Bing search, now I have a serious problem, whenever I change the url by clicking on the image, the signal "urlChanged" emit, but the signal "loadPageFinshed" wouldn't emit, how could I forced the page reload when url changed?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @tham Shouldn't you set the URL you receive in urlChanged using http://doc.qt.io/qt-5/qwebenginepage.html#url-prop ?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      thamT 1 Reply Last reply
      0
      • jsulmJ jsulm

        @tham Shouldn't you set the URL you receive in urlChanged using http://doc.qt.io/qt-5/qwebenginepage.html#url-prop ?

        thamT Offline
        thamT Offline
        tham
        wrote on last edited by
        #3

        @jsulm This will cause recursive call.

        When the url changed, the view of the web page changed too, but the loadPageFinished signal would not emit(weird) and the runJavaScript function do not work because it could not find the id of the button.

        I could disconnect the signal and slot and force the webpage to load the changed url, but it is quite cumbersome and it will need to load the page two times.

        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