[Qt-interest] qwebview script change of url property fails

Bart van Deenen bvandeenen at infologic.nl
Wed Jan 6 16:48:54 CET 2010


Hi all

I'm using Qt4.6 on Linux. I have a subclass of QWebView which shows a webpage 
just fine. When I change the url from C++ with setUrl that also works fine.

I also have a QtScript interface to the same QWebView object, and I can see 
that the url is correct on readback. Also when a web page redirects, I get the 
redirected url.

But when I modify the url of the object via the script interface, the old url 
remains in place, and the page shown does not change.
Strange is that other properties (such as 'zoomFactor') work fine from my 
script interface.

Any suggestions?

Bart



More information about the Qt-interest-old mailing list