[PyQt] evaluateJavaScript on every page

Florian Bruhin me at the-compiler.org
Tue Apr 1 05:38:16 BST 2014


Hi,

* Peter Irbizon <peterirbizon at gmail.com> [2014-04-01 00:27:58 +0200]:
> I am using evaluateJavaScript to change some JS values in my case
> window.navigator. It works pretty well on first visited page
> http://something.tld/first.php but when I click on any link on that page
> and go to second.php it stops to be in effect.
> How can I do it to stay this javascript in effect for every visited
> (navigated, clicked) page from my application?

Bind it to the javaScriptWindowObjectCleared signal probably:

http://qt-project.org/doc/qt-4.8/qwebframe.html#javaScriptWindowObjectCleared

Florian

-- 
() ascii ribbon campaign - stop html mail    www.asciiribbon.org
/\ www.the-compiler.org  | I love long mails http://email.is-not-s.ms/
"Text processing has made it possible to right-justify any idea, even one 
which cannot be justified on any other grounds." -- J. Finnegan, USC. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140401/4ceb1b5c/attachment.pgp>


More information about the PyQt mailing list