[PyQt] QNetworkRequest::setAttribute(Attribute code, const QVariant &value)

redstone-cold redstone-cold at 163.com
Sun May 15 11:09:59 BST 2016


I want to let my application to follow redirections, then it seems I should use 
void QNetworkRequest::setAttribute(Attribute code, const QVariant &value)
http://doc.qt.io/qt-5/qnetworkrequest.html#setAttribute


I think the attribute to set should be QNetworkRequest::FollowRedirectsAttribute, but I don't know what value to set for the second parameter , any suggestions? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160515/9bb93a76/attachment-0001.html>


More information about the PyQt mailing list