"downloadStatusUpdated"

This event is triggered whenever the status of a download changes (for example, when a download starts, finishes, is canceled, or gets interrupted). It only works if the property acceptDownloads is set to TRUE.

Synopsis

downloadStatusUpdated(uint downloadId, string filepath, int state, mapping params);

Parameters

Parameter Description
downloadId The ID of the download you want to resume. This ID is provided in the downloadStatusUpdated event.
filePath The absolute path to the file.
state The new state of the download. For more details, see the QT Documentation.
params Additional parameters.

Details

The params mapping contains the following elements:

  • string mimeType
  • string downloadDirectory
  • string downloadFileName
  • ulong totalBytes
  • int interruptReason (see the QT Documentation)
  • string interruptReasonString
  • string url
Important:

There is currently a bug in QT when using downloads in the WebView widget (https://bugreports.qt.io/browse/QTBUG-132473). This bug causes the downloadStatusUpdated event to be triggered multiple times with the same state when downloads are interrupted (for example, if the webserver stops while the download is in progress).

Assignment

WebView EWO