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

Sample code doesn't compile

    XMLWordPrintable

Details

    • Windows
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            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