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. Is there any "HTML change" signal in QWebView?
QtWS25 Last Chance

Is there any "HTML change" signal in QWebView?

Scheduled Pinned Locked Moved Unsolved Qt WebKit
webkitwebkitwidgetsqwebviewqwebpagesignals & slots
3 Posts 2 Posters 1.9k 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.
  • E Offline
    E Offline
    Eyeless
    wrote on last edited by
    #1

    Hello,
    I need to get information about current song from an Internet radio website. I open it in QWebView and then parse information using QWebElement in a slot, connected to QWebView::loadFinished(bool) signal.
    But after some time song and information about it on the web page change. QWebView successfully loads new information, but I can't find a signal, that tells about this changes.
    I tried QWebView::page()::contentsChanged() and QWebView::page()::mainFrame()::pageChanged() signals, but they both were not emitted, when song data on the web page was changing.
    So, is there any signal that will help me or I should implement checking changes of HTML code of the page myself?
    Thanks in advance for your answers!

    M 1 Reply Last reply
    0
    • E Eyeless

      Hello,
      I need to get information about current song from an Internet radio website. I open it in QWebView and then parse information using QWebElement in a slot, connected to QWebView::loadFinished(bool) signal.
      But after some time song and information about it on the web page change. QWebView successfully loads new information, but I can't find a signal, that tells about this changes.
      I tried QWebView::page()::contentsChanged() and QWebView::page()::mainFrame()::pageChanged() signals, but they both were not emitted, when song data on the web page was changing.
      So, is there any signal that will help me or I should implement checking changes of HTML code of the page myself?
      Thanks in advance for your answers!

      M Offline
      M Offline
      maximo
      wrote on last edited by
      #2

      @Eyeless Have you tried using QWebView::urlChanged()?

      E 1 Reply Last reply
      0
      • M maximo

        @Eyeless Have you tried using QWebView::urlChanged()?

        E Offline
        E Offline
        Eyeless
        wrote on last edited by
        #3

        @maximo the problem is that page`s url is not changing when song data changes. I solved the problem by checking song data using a timer and emiting my own signal.

        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