Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.0.3
-
None
-
Qt Creator 4.14.2 ([c34b950227)|https://code.qt.io/cgit/qt-creator/qt-creator.git/log/?id=c34b9502275d0d1d5b88d7a63bff076e2a164836]
Qt 6.0.3
Windows 10
-
-
3ab7449f125bb9ff68fbbcae283b909c1ecd2076 (qt/qtbase/dev) 8130fc24682e1d8857b612047f13f312adb03956 (qt/qtbase/6.1)
Description
On https://doc.qt.io/qt-6/network-changes-qt6.html#redirect-policies there is this snippet:
request.setAttribute(QNetworkRequest::RedirectPolicy, QNetworkRequest::ManualRedirectPolicy);
But I had to replace QNetworkRequest::RedirectPolicy with QNetworkRequest::RedirectPolicy*Attribute* to get this code to compile with Qt 6. I assume the documentation needs to be changed accordingly, as well.