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 Updated to NodeBB v4.3 + New Features

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.
  • T Offline
    T Offline
    tham
    wrote on 9 May 2017, 00:02 last edited by tham 5 Sept 2017, 05:57
    #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?

    J 1 Reply Last reply 9 May 2017, 04:27
    0
    • T tham
      9 May 2017, 00:02

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 9 May 2017, 04:27 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

      T 1 Reply Last reply 9 May 2017, 07:52
      0
      • J jsulm
        9 May 2017, 04:27

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

        T Offline
        T Offline
        tham
        wrote on 9 May 2017, 07:52 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

        1/3

        9 May 2017, 00:02

        • Login

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