Hi,
can anybody help me to solve this problem? I would like to apply a javascript on a web page while is loading so that the final webpage is a modified version of the remote one. The script to apply is:


Qt Code:
  1. (function () {
  2. dl=document.links;
  3. for(i=0;i<dl.length;++i){
  4. if(dl[i].href.substr(-4)==".pdf"){
  5. dl[i].href="http://docs.google.com/viewer?url="+dl[i].href;
  6. }
  7. }
  8. })();
To copy to clipboard, switch view to plain text mode 

I have seen that QWebFrame has evaluateJavaScript but I don't know how to use it (if it's the right way!)

Any tips?

Best regards