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

No way to get interruption reason from QWebEngineDownloadItem

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.9
    • None
    • WebEngine
    • None
    • 6644981dfde2ad24186156d5c31a74c686b5557a

      When a QWebEngineDownloadItem changes its state to DownloadInterrupted, there's no way to figure out what error happened.

      Chromium seems to provide that information, at least there's a list of possible values in chromium/content/public/browser/download_interrupt_reason_values.h.

      I'd imagine an API with an error() method (returning an enum value) and an errorString() method (chromium seems to have std::string CONTENT_EXPORT DownloadInterruptReasonToString( DownloadInterruptReason error);.

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

            viengelm Viktor Engelmann
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes