[PyQt] Hang when overriding QNetworkAccessManager::createRequest on warnings

Phil Thompson phil at riverbankcomputing.com
Thu Jun 26 14:54:36 BST 2014


On 25/06/2014 7:14 pm, Florian Bruhin wrote:
> Hi,
> 
> I noticed a rather exotic bug, in either Qt or PyQt.
> 
> When I override QNetworkAccessManager::createRequest (even when doing
> nothing there) and a Qt warning is printed in createRequest, when
> using a custom message handler, Qt hangs.
> 
> This can be tested by executing the example code, and on Mouser
> clicking on any currency.
> 
> The warning "content-type missing in HTTP POST, defaulting to
> application/x-www-form-urlencoded. Use QNetworkRequest::setHeader() to
> fix this problem." should be printed. Instead, Qt hangs before
> printing the message.

Fixed in tonight's PyQt5 snapshot.

Thanks,
Phil


More information about the PyQt mailing list