Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #55849 > unrolled thread
| Started by | Gelonida <gelonida@gmail.com> |
|---|---|
| First post | 2011-02-02 00:31 +0100 |
| Last post | 2011-02-03 00:56 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
PyQT: QWebView with custom QNetworkAccessManager Gelonida <gelonida@gmail.com> - 2011-02-02 00:31 +0100
Re: PyQT: QWebView with custom QNetworkAccessManager David Boddie <david@boddie.org.uk> - 2011-02-03 00:56 +0100
| From | Gelonida <gelonida@gmail.com> |
|---|---|
| Date | 2011-02-02 00:31 +0100 |
| Subject | PyQT: QWebView with custom QNetworkAccessManager |
| Message-ID | <mailman.1565.1296603307.6505.python-list@python.org> |
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
[toc] | [next] | [standalone]
| From | David Boddie <david@boddie.org.uk> |
|---|---|
| Date | 2011-02-03 00:56 +0100 |
| Message-ID | <iicqvq$5ev$1@get-news01.get.basefarm.net> |
| In reply to | #55849 |
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: 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web