Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93416

Sample code doesn't compile

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      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.

        Attachments

        For Gerrit Dashboard: QTBUG-93416
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            tschroeder Tim Schroeder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes