Portability: [Was: Re: [PyQt] QWebKit issue with certain URLs]

Jan Ekholm jan.ekholm at smultron.net
Wed Sep 24 08:59:08 BST 2008


On Wednesday 24 September 2008, Glenn Linderman wrote:
> So I tried to try this... being (currently) a PyQt Windows user.  The
> code below wouldn't run at all.
>
> Transforming it to:
>
> #!/usr/bin/env python
> from PyQt4 import QtCore, QtGui, QtWebKit
>
> app = QtGui.QApplication([])
> web = QtWebKit.QWebView()
> url = QtWebKit.QUrl("http://library.williamson-tn.org")
> web.load(url)
> web.show()
> app.exec_()
>
> helped quite a bit, but didn't find QUrl.

QUrl comes from QtCore.

-- 
Jan Ekholm
jan.ekholm at smultron.net


More information about the PyQt mailing list