[PyQt] QNetworkReply and PyQt 4.7.3-2
Phil Thompson
phil at riverbankcomputing.com
Mon May 3 20:31:30 BST 2010
On Mon, 3 May 2010 15:52:30 -0300, Tiago Rezende <tiagosr at gmail.com> wrote:
> Hi,
>
> I was using PyQt 4.7.1 for developing an app using QWebView as the
> main interface, and was coding a scheme not unlike that of Firefox
> with it's "chrome:" protocol, following some pointers from
> http://www.mail-archive.com/python-list@python.org/msg247104.html
> (which, with some slight changes, got me to where I wanted).
> Trouble is, when I updated to PyQt 4.7.3-2 on saturday, my program
> just stopped working, throwing a segfault on Python 2.6.5 (and even on
> IDLE, which to the extent that I know is in a separate instance) on
> Windows XP SP2 and Windows 7 x64 both (32bit Python on Windows 7,
> though), and isolating the cause, it happens to be exactly after I set
> up my custom QNetworkReply class to deliver the response my QWebView.
> Has anything changed with the QNetworkReply interface inbetween these
> versions? Here follows the minimal code needed to reproduce the bug,
> hope it helps.
A bug in QNetworkAccessManager.createRequest() was fixed (see the change
log). You need to make sure that your reply has the access manager as its
parent.
Phil
More information about the PyQt
mailing list