WebEngineDownloadItem QML Type
Provides information about a download. More...
|Import Statement:||import QtWebEngine 1.3|
- id : int
- mimeType : string
- path : string
- receivedBytes : int
- savePageFormat : enumeration
- state : enumeration
- totalBytes : int
Stores the state of a download to be used to manage requested downloads.
By default, the download is rejected unless the user explicitly accepts it with WebEngineDownloadItem::accept().
Holds the MIME type of the download.
This QML property was introduced in QtWebEngine 1.2.
Holds the full target path where data is being downloaded to.
The path includes the file name. The default suggested path is the standard download location and file name is deduced not to overwrite already existing files.
The download path can only be set in the
WebEngineProfile.onDownloadRequested handler before the download is accepted.
Describes the format that is used to save a web page.
|This is not a request for downloading a complete web page.|
|The page is saved as a single HTML page. Resources such as images are not saved.|
|The page is saved as a complete HTML page, for example a directory containing the single HTML page and the resources.|
|The page is saved as a complete web page in the MIME HTML format.|
This QML property was introduced in QtWebEngine 1.3.
Describes the state of the download:
|Download has been requested, but it has not been accepted yet.|
|Download is in progress.|
|Download completed successfully.|
|Download has been interrupted (by the server or because of lost connectivity).|
Holds the total amount of data to download in bytes.
-1 means the total size is unknown.
Accepts the download request, which will start the download.
See also WebEngineDownloadItem::cancel().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.