Hi there,

I want to write a programme with several QWebView's. So I created few QWebView's and load for every View another HTML Site. Then I want to delete from every site HTML links. I do this after loadFinished(bool) is emitted from QWebView with evaluateJavaScript() function.

Qt Code:
  1. web_view->page()->mainFrame()->evaluateJavaScript("$('a').each( function () { $(this).removeAttr('href'); } )");
To copy to clipboard, switch view to plain text mode 

I reconginze that the function evaluateJavaScript() only works at its own object but if I load these HTML sites only links from the last loaded HTML are removed.


I that a normal behviour or how can I fix it that links are removed on every HTML site in a QWebView?