PyQT: QWebView with custom QNetworkAccessManager

David Boddie david at
Thu Feb 3 00:56:42 CET 2011

On Wednesday 02 February 2011 00:31, Gelonida wrote:

> I would like to subclass QNetworkAccessManager and
> create a subclass of QWebView, that will use the subclassed
> QNetworkAccessManager for all accesses.
> Is this possible?
> I have really no idea when and how I could achieve this.
> Thanks in advance for any suggestions / pointers

See this page for an example:

Try subclassing the NetworkAccessManager.createRequest method as in the
example and returning custom replies for each access. That might do
what you want.


More information about the Python-list mailing list