PyQT: QWebView with custom QNetworkAccessManager

Discussion in 'Python' started by Gelonida, Feb 1, 2011.

  1. Gelonida

    Gelonida Guest

    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
    Gelonida, Feb 1, 2011
    #1
    1. Advertising

  2. Gelonida

    David Boddie Guest

    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
    David Boddie, Feb 2, 2011
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sgperone
    Replies:
    1
    Views:
    1,095
    sgperone
    Jun 28, 2009
  2. Gelonida
    Replies:
    0
    Views:
    788
    Gelonida
    Feb 2, 2011
  3. Gelonida
    Replies:
    5
    Views:
    698
    Gelonida
    Feb 24, 2011
  4. Gelonida
    Replies:
    0
    Views:
    584
    Gelonida
    Feb 19, 2011
  5. Gelonida
    Replies:
    0
    Views:
    258
    Gelonida
    Mar 3, 2011
Loading...

Share This Page