PyQT: QWebView with custom QNetworkAccessManager

G

Gelonida

Hi,

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
 
D

David Boddie

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:

http://www.diotavelli.net/PyQtWiki/Using_a_Custom_Protocol_with_QtWebKit

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

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,440
Latest member
YoungBorel

Latest Threads

Top