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

QWebEngineDownloadItem::downloadProgress has 0 as bytesTotal if unknown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.9.0 Beta 4
    • Component/s: Documentation, WebEngine
    • Labels:
      None
    • Commits:
      3b901b25a86f49ebef9be03ec762ed76422fd91c

      Description

      When downloading a file with an unknown size like http://httpbin.org/stream-bytes/1024 with QtWebEngine, downloadProgress gets emitted with 0 for bytesTotal.

      This is kind of unexpected and different from QNetworkReply::downloadProgress where -1 is used for that purpose.

      It's probably too late to change that behaviour now, but I think it should at least be documented.

        Attachments

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

          Activity

            People

            Assignee:
            leenam Leena Miettinen
            Reporter:
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes