[PyQt] QWebView doesn't run inline javascript

Dmitry Shachnev mitya57 at ubuntu.com
Wed Feb 19 14:59:20 GMT 2014


On Sat, Feb 15, 2014 at 3:55 PM, Kovid Goyal <kovid at kovidgoyal.net> wrote:
> You need to supply the baseurl, webkit cannot know how to resolve
> relative links in the document without that.
>
>         setHtml ( const QString & html, const QUrl & baseUrl = QUrl() )

That seems to fix some issues, thanks. However I don't understand why
it didn't work with absolute paths (like file:///).

--
Dmitry Shachnev


More information about the PyQt mailing list