PyQT: QWebView with custom QNetworkAccessManager
phil at riverbankcomputing.com
Wed Feb 2 09:28:47 CET 2011
On Wed, 02 Feb 2011 02:37:06 +0100, Gelonida <gelonida at gmail.com> wrote:
> On 02/02/2011 12:31 AM, 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
> Well I answer my own question.
> In fact my first experiments failed horribly due to a tiny PyQt detail.
> I expected that, the variable new_manager does not have to be
> I naively assumed, that a call to setNetworkAccessManager() would keep a
> reference to new_manager and thus avoid its destruction this does not
> seem to be the case.
It is the case in current versions.
More information about the Python-list