Obsolete Members for WebEngineDownloadItem

The following members of QML type WebEngineDownloadItem are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.


Property Documentation

id : int

Holds the download item's ID.

[read-only] interruptReason : enumeration

Returns the reason why the download was interrupted:

WebEngineDownloadItem.NoReasonUnknown reason or not interrupted.
WebEngineDownloadItem.FileFailedGeneral file operation failure.
WebEngineDownloadItem.FileAccessDeniedThe file cannot be written locally, due to access restrictions.
WebEngineDownloadItem.FileNoSpaceInsufficient space on the target drive.
WebEngineDownloadItem.FileNameTooLongThe directory or file name is too long.
WebEngineDownloadItem.FileTooLargeThe file size exceeds the file system limitation.
WebEngineDownloadItem.FileVirusInfectedThe file is infected with a virus.
WebEngineDownloadItem.FileTransientErrorTemporary problem (for example the file is in use, out of memory, or too many files are opened at once).
WebEngineDownloadItem.FileBlockedThe file was blocked due to local policy.
WebEngineDownloadItem.FileSecurityCheckFailedAn attempt to check the safety of the download failed due to unexpected reasons.
WebEngineDownloadItem.FileTooShortAn attempt was made to seek past the end of a file when opening a file (as part of resuming a previously interrupted download).
WebEngineDownloadItem.FileHashMismatchThe partial file did not match the expected hash.
WebEngineDownloadItem.NetworkFailedGeneral network failure.
WebEngineDownloadItem.NetworkTimeoutThe network operation has timed out.
WebEngineDownloadItem.NetworkDisconnectedThe network connection has been terminated.
WebEngineDownloadItem.NetworkServerDownThe server has gone down.
WebEngineDownloadItem.NetworkInvalidRequestThe network request was invalid (for example, the original or redirected URL is invalid, has an unsupported scheme, or is disallowed by policy).
WebEngineDownloadItem.ServerFailedGeneral server failure.
WebEngineDownloadItem.ServerBadContentThe server does not have the requested data.
WebEngineDownloadItem.ServerUnauthorizedThe server did not authorize access to the resource.
WebEngineDownloadItem.ServerCertProblemA problem with the server certificate occurred.
WebEngineDownloadItem.ServerForbiddenAccess forbidden by the server.
WebEngineDownloadItem.ServerUnreachableUnexpected server response (might indicate that the responding server may not be the intended server).
WebEngineDownloadItem.UserCanceledThe user canceled the download.

This property was introduced in QtWebEngine 1.5.

See also interruptReasonString.

interruptReasonString : string

Returns a human-readable description of the reason for interrupting the download.

This property was introduced in QtWebEngine 1.5.

See also interruptReason.

[read-only] isFinished : bool

Whether this download is finished (completed, cancelled, or non-resumable interrupted state).

This property was introduced in QtWebEngine 1.6.

[read-only] isPaused : bool

Whether this download is paused.

This property was introduced in QtWebEngine 1.6.

See also pause and resume.

[read-only] isSavePageDownload : bool

Whether this is a download request for saving a web page or a file.

This property was introduced in QtWebEngine 1.7.

See also savePageFormat.

mimeType : string

Holds the MIME type of the download.

This property was introduced in QtWebEngine 1.2.

path : string

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 downloadRequested handler before the download is accepted.

See also WebEngineProfile::downloadRequested() and accept().

receivedBytes : int

Holds the amount of data in bytes that has been downloaded so far.

savePageFormat : enumeration

Describes the format that is used to save a web page.

WebEngineDownloadItem.UnknownSaveFormatThis is not a request for downloading a complete web page.
WebEngineDownloadItem.SingleHtmlSaveFormatThe page is saved as a single HTML page. Resources such as images are not saved.
WebEngineDownloadItem.CompleteHtmlSaveFormatThe page is saved as a complete HTML page, for example a directory containing the single HTML page and the resources.
WebEngineDownloadItem.MimeHtmlSaveFormatThe page is saved as a complete web page in the MIME HTML format.

This property was introduced in QtWebEngine 1.3.

state : enumeration

Describes the state of the download:

WebEngineDownloadItem.DownloadRequestedDownload has been requested, but it has not been accepted yet.
WebEngineDownloadItem.DownloadInProgressDownload is in progress.
WebEngineDownloadItem.DownloadCompletedDownload completed successfully.
WebEngineDownloadItem.DownloadCancelledDownload was cancelled by the user.
WebEngineDownloadItem.DownloadInterruptedDownload has been interrupted (by the server or because of lost connectivity).

totalBytes : int

Holds the total amount of data to download in bytes.

-1 means the total size is unknown.

[read-only] view : WebEngineView

Returns the view the download was requested on. If the download was not triggered by content in a view, nullptr is returned.

This property was introduced in QtWebEngine 1.8.

See also WebEngineView.

© 2019 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.