Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 433eb9daba9f45efee96fd578b74d021 > files > 110

qtwebengine5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickwebenginedownloaditem.cpp -->
  <title>WebEngineDownloadItem QML Type | Qt WebEngine 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtwebengine-index.html">Qt WebEngine</a></td><td ><a href="qtwebengine-qmlmodule.html">QML Types</a></td><td >WebEngineDownloadItem QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtwebengine-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#methods">Methods</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#object-life-cycle">Object Life Cycle</a></li>
<li class="level2"><a href="#web-page-downloads">Web Page Downloads</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">WebEngineDownloadItem QML Type</h1>
<span class="subtitle"></span>
<!-- $$$WebEngineDownloadItem-brief -->
<p>Provides information about a download. <a href="#details">More...</a></p>
<!-- @@@WebEngineDownloadItem -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtWebEngine 1.8</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  QtWebEngine 1.1</td></tr></table></div><ul>
<li><a href="qml-qtwebengine-webenginedownloaditem-members.html">List of all members, including inherited members</a></li>
<li><a href="qml-qtwebengine-webenginedownloaditem-obsolete.html">Obsolete members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#id-prop">id</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#interruptReason-prop">interruptReason</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#interruptReasonString-prop">interruptReasonString</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#isFinished-prop">isFinished</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#isPaused-prop">isPaused</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#isSavePageDownload-prop">isSavePageDownload</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#mimeType-prop">mimeType</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#path-prop">path</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#receivedBytes-prop">receivedBytes</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#savePageFormat-prop">savePageFormat</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#state-prop">state</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#totalBytes-prop">totalBytes</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtwebengine-webenginedownloaditem.html#view-prop">view</a></b></b> : WebEngineView</li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn">void <b><b><a href="qml-qtwebengine-webenginedownloaditem.html#accept-method">accept</a></b></b>()</li>
<li class="fn">void <b><b><a href="qml-qtwebengine-webenginedownloaditem.html#cancel-method">cancel</a></b></b>()</li>
<li class="fn">void <b><b><a href="qml-qtwebengine-webenginedownloaditem.html#pause-method">pause</a></b></b>()</li>
<li class="fn">void <b><b><a href="qml-qtwebengine-webenginedownloaditem.html#resume-method">resume</a></b></b>()</li>
</ul>
<!-- $$$WebEngineDownloadItem-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p><a href="qml-qtwebengine-webenginedownloaditem.html">WebEngineDownloadItem</a> models a download throughout its life cycle, starting with a pending download request and finishing with a completed download. It can be used, for example, to get information about new downloads, to monitor progress, and to pause, resume, and cancel downloads.</p>
<p>Downloads are usually triggered by user interaction on a web page. It is the <a href="qml-qtwebengine-webengineprofile.html">WebEngineProfile</a>'s responsibility to notify the application of new download requests, which it does by emitting the <a href="qml-qtwebengine-webengineprofile.html#downloadRequested-signal">downloadRequested</a> signal together with a newly created <a href="qml-qtwebengine-webenginedownloaditem.html">WebEngineDownloadItem</a>. The application can then examine this item and decide whether to accept it or not. A signal handler must explicitly call <a href="qml-qtwebengine-webenginedownloaditem.html#accept-method">accept()</a> on the item for Qt WebEngine to actually start downloading and writing data to disk. If no signal handler calls <a href="qml-qtwebengine-webenginedownloaditem.html#accept-method">accept()</a>, then the download request will be automatically rejected and nothing will be written to disk.</p>
<p><b>Note: </b>Some properties, like the <a href="qml-qtwebengine-webenginedownloaditem.html#path-prop">path</a> under which the file will be saved, can only be changed before calling <a href="qml-qtwebengine-webenginedownloaditem.html#accept-method">accept()</a>.</p><a name="object-life-cycle"></a>
<h3 id="object-life-cycle">Object Life Cycle</h3>
<p>All items are guaranteed to be valid during the emission of the <a href="qml-qtwebengine-webengineprofile.html#downloadRequested-signal">downloadRequested</a> signal. If <a href="qml-qtwebengine-webenginedownloaditem.html#accept-method">accept()</a> is <i>not</i> called by any signal handler, then the item will be deleted <i>immediately</i> after signal emission. This means that the application <b>must not</b> keep references to rejected download items.</p>
<a name="web-page-downloads"></a>
<h3 id="web-page-downloads">Web Page Downloads</h3>
<p>In addition to normal file downloads, which consist simply of retrieving some raw bytes from the network and writing them to disk, Qt WebEngine also supports saving complete web pages, which involves parsing the page's HTML, downloading any dependent resources, and potentially packaging everything into a special file format (<a href="qml-qtwebengine-webenginedownloaditem.html#savePageFormat-prop">savePageFormat</a>). To check if a download is for a file or a web page, use <a href="qml-qtwebengine-webenginedownloaditem.html#isSavePageDownload-prop">isSavePageDownload</a>.</p>
<p><b>See also </b><a href="qml-qtwebengine-webengineprofile.html">WebEngineProfile</a>, <a href="qml-qtwebengine-webengineprofile.html#downloadRequested-signal">WebEngineProfile::downloadRequested</a>, and <a href="qml-qtwebengine-webengineprofile.html#downloadFinished-signal">WebEngineProfile::downloadFinished</a>.</p>
<!-- @@@WebEngineDownloadItem -->
<h2>Property Documentation</h2>
<!-- $$$id -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="id-prop">
<td class="tblQmlPropNode"><p>
<a name="id-prop"></a><span class="name">id</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the download item's ID.</p>
</div></div><!-- @@@id -->
<br/>
<!-- $$$interruptReason -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="interruptReason-prop">
<td class="tblQmlPropNode"><p>
<a name="interruptReason-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">interruptReason</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns the reason why the download was interrupted:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.NoReason</code></td><td class="topAlign">Unknown reason or not interrupted.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileFailed</code></td><td class="topAlign">General file operation failure.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileAccessDenied</code></td><td class="topAlign">The file cannot be written locally, due to access restrictions.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileNoSpace</code></td><td class="topAlign">Insufficient space on the target drive.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileNameTooLong</code></td><td class="topAlign">The directory or file name is too long.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileTooLarge</code></td><td class="topAlign">The file size exceeds the file system limitation.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileVirusInfected</code></td><td class="topAlign">The file is infected with a virus.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileTransientError</code></td><td class="topAlign">Temporary problem (for example the file is in use, out of memory, or too many files are opened at once).</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileBlocked</code></td><td class="topAlign">The file was blocked due to local policy.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileSecurityCheckFailed</code></td><td class="topAlign">An attempt to check the safety of the download failed due to unexpected reasons.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileTooShort</code></td><td class="topAlign">An attempt was made to seek past the end of a file when opening a file (as part of resuming a previously interrupted download).</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.FileHashMismatch</code></td><td class="topAlign">The partial file did not match the expected hash.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.NetworkFailed</code></td><td class="topAlign">General network failure.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.NetworkTimeout</code></td><td class="topAlign">The network operation has timed out.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.NetworkDisconnected</code></td><td class="topAlign">The network connection has been terminated.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.NetworkServerDown</code></td><td class="topAlign">The server has gone down.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.NetworkInvalidRequest</code></td><td class="topAlign">The network request was invalid (for example, the original or redirected URL is invalid, has an unsupported scheme, or is disallowed by policy).</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.ServerFailed</code></td><td class="topAlign">General server failure.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.ServerBadContent</code></td><td class="topAlign">The server does not have the requested data.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.ServerUnauthorized</code></td><td class="topAlign">The server did not authorize access to the resource.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.ServerCertProblem</code></td><td class="topAlign">A problem with the server certificate occurred.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.ServerForbidden</code></td><td class="topAlign">Access forbidden by the server.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.ServerUnreachable</code></td><td class="topAlign">Unexpected server response (might indicate that the responding server may not be the intended server).</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.UserCanceled</code></td><td class="topAlign">The user canceled the download.</td></tr>
</table></div>
<p>This property was introduced in  QtWebEngine 1.5.</p>
<p><b>See also </b><a href="qml-qtwebengine-webenginedownloaditem.html#interruptReasonString-prop">interruptReasonString</a>.</p>
</div></div><!-- @@@interruptReason -->
<br/>
<!-- $$$interruptReasonString -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="interruptReasonString-prop">
<td class="tblQmlPropNode"><p>
<a name="interruptReasonString-prop"></a><span class="name">interruptReasonString</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns a human-readable description of the reason for interrupting the download.</p>
<p>This property was introduced in  QtWebEngine 1.5.</p>
<p><b>See also </b><a href="qml-qtwebengine-webenginedownloaditem.html#interruptReason-prop">interruptReason</a>.</p>
</div></div><!-- @@@interruptReasonString -->
<br/>
<!-- $$$isFinished -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="isFinished-prop">
<td class="tblQmlPropNode"><p>
<a name="isFinished-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">isFinished</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Whether this download is finished (completed, cancelled, or non-resumable interrupted state).</p>
<p>This property was introduced in  QtWebEngine 1.6.</p>
</div></div><!-- @@@isFinished -->
<br/>
<!-- $$$isPaused -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="isPaused-prop">
<td class="tblQmlPropNode"><p>
<a name="isPaused-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">isPaused</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Whether this download is paused.</p>
<p>This property was introduced in  QtWebEngine 1.6.</p>
<p><b>See also </b><a href="qml-qtwebengine-webenginedownloaditem.html#pause-method">pause</a> and <a href="qml-qtwebengine-webenginedownloaditem.html#resume-method">resume</a>.</p>
</div></div><!-- @@@isPaused -->
<br/>
<!-- $$$isSavePageDownload -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="isSavePageDownload-prop">
<td class="tblQmlPropNode"><p>
<a name="isSavePageDownload-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">isSavePageDownload</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Whether this is a download request for saving a web page or a file.</p>
<p>This property was introduced in  QtWebEngine 1.7.</p>
<p><b>See also </b><a href="qml-qtwebengine-webenginedownloaditem.html#savePageFormat-prop">savePageFormat</a>.</p>
</div></div><!-- @@@isSavePageDownload -->
<br/>
<!-- $$$mimeType -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="mimeType-prop">
<td class="tblQmlPropNode"><p>
<a name="mimeType-prop"></a><span class="name">mimeType</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the MIME type of the download.</p>
<p>This property was introduced in  QtWebEngine 1.2.</p>
</div></div><!-- @@@mimeType -->
<br/>
<!-- $$$path -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="path-prop">
<td class="tblQmlPropNode"><p>
<a name="path-prop"></a><span class="name">path</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the full target path where data is being downloaded to.</p>
<p>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.</p>
<p>The download path can only be set in the <a href="qml-qtwebengine-webengineprofile.html#downloadRequested-signal">downloadRequested</a> handler before the download is accepted.</p>
<p><b>See also </b><a href="qml-qtwebengine-webengineprofile.html#downloadRequested-signal">WebEngineProfile::downloadRequested()</a> and <a href="qml-qtwebengine-webenginedownloaditem.html#accept-method">accept()</a>.</p>
</div></div><!-- @@@path -->
<br/>
<!-- $$$receivedBytes -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="receivedBytes-prop">
<td class="tblQmlPropNode"><p>
<a name="receivedBytes-prop"></a><span class="name">receivedBytes</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the amount of data in bytes that has been downloaded so far.</p>
</div></div><!-- @@@receivedBytes -->
<br/>
<!-- $$$savePageFormat -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="savePageFormat-prop">
<td class="tblQmlPropNode"><p>
<a name="savePageFormat-prop"></a><span class="name">savePageFormat</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Describes the format that is used to save a web page.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.UnknownSaveFormat</code></td><td class="topAlign">This is not a request for downloading a complete web page.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.SingleHtmlSaveFormat</code></td><td class="topAlign">The page is saved as a single HTML page. Resources such as images are not saved.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.CompleteHtmlSaveFormat</code></td><td class="topAlign">The page is saved as a complete HTML page, for example a directory containing the single HTML page and the resources.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.MimeHtmlSaveFormat</code></td><td class="topAlign">The page is saved as a complete web page in the MIME HTML format.</td></tr>
</table></div>
<p>This property was introduced in  QtWebEngine 1.3.</p>
</div></div><!-- @@@savePageFormat -->
<br/>
<!-- $$$state -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="state-prop">
<td class="tblQmlPropNode"><p>
<a name="state-prop"></a><span class="name">state</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Describes the state of the download:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.DownloadRequested</code></td><td class="topAlign">Download has been requested, but it has not been accepted yet.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.DownloadInProgress</code></td><td class="topAlign">Download is in progress.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.DownloadCompleted</code></td><td class="topAlign">Download completed successfully.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.DownloadCancelled</code></td><td class="topAlign">Download was cancelled by the user.</td></tr>
<tr><td class="topAlign"><code>WebEngineDownloadItem.DownloadInterrupted</code></td><td class="topAlign">Download has been interrupted (by the server or because of lost connectivity).</td></tr>
</table></div>
</div></div><!-- @@@state -->
<br/>
<!-- $$$totalBytes -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="totalBytes-prop">
<td class="tblQmlPropNode"><p>
<a name="totalBytes-prop"></a><span class="name">totalBytes</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the total amount of data to download in bytes.</p>
<p><code>-1</code> means the total size is unknown.</p>
</div></div><!-- @@@totalBytes -->
<br/>
<!-- $$$view -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="view-prop">
<td class="tblQmlPropNode"><p>
<a name="view-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">view</span> : <span class="type"><a href="qml-qtwebengine-webengineview.html">WebEngineView</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns the view the download was requested on. If the download was not triggered by content in a view, <code>nullptr</code> is returned.</p>
<p>This property was introduced in  QtWebEngine 1.8.</p>
<p><b>See also </b><a href="qml-qtwebengine-webengineview.html">WebEngineView</a>.</p>
</div></div><!-- @@@view -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$accept -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="accept-method">
<td class="tblQmlFuncNode"><p>
<a name="accept-method"></a><span class="type">void</span> <span class="name">accept</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Accepts the download request, which will start the download.</p>
<p>If the item is in the <code>DownloadRequested</code> state, then it will transition into the <code>DownloadInProgress</code> state and the downloading will begin. If the item is in any other state, then nothing will happen.</p>
<p><b>See also </b><a href="qml-qtwebengine-webenginedownloaditem.html#state-prop">state</a>.</p>
</div></div><!-- @@@accept -->
<br/>
<!-- $$$cancel -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="cancel-method">
<td class="tblQmlFuncNode"><p>
<a name="cancel-method"></a><span class="type">void</span> <span class="name">cancel</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Cancels the download.</p>
<p>If the item is in the <code>DownloadInProgress</code> state, then it will transition into the <code>DownloadCancelled</code> state, the downloading will stop, and partially downloaded files will be deleted from disk.</p>
<p>If the item is in the <code>DownloadCompleted</code> state, then nothing will happen. If the item is in any other state, then it will transition into the <code>DownloadCancelled</code> state without further effect.</p>
<p><b>See also </b><a href="qml-qtwebengine-webenginedownloaditem.html#state-prop">state</a>.</p>
</div></div><!-- @@@cancel -->
<br/>
<!-- $$$pause -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pause-method">
<td class="tblQmlFuncNode"><p>
<a name="pause-method"></a><span class="type">void</span> <span class="name">pause</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Pauses the download.</p>
<p>Has no effect if the state is not <code>DownloadInProgress</code>. Does not change the state.</p>
<p>This method was introduced in  QtWebEngine 1.6.</p>
<p><b>See also </b><a href="qml-qtwebengine-webenginedownloaditem.html#resume-method">resume</a> and <a href="qml-qtwebengine-webenginedownloaditem.html#isPaused-prop">isPaused</a>.</p>
</div></div><!-- @@@pause -->
<br/>
<!-- $$$resume -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="resume-method">
<td class="tblQmlFuncNode"><p>
<a name="resume-method"></a><span class="type">void</span> <span class="name">resume</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Resumes the download if it was paused or interrupted.</p>
<p>Has no effect if the state is not <code>DownloadInProgress</code> or <code>DownloadInterrupted</code>. Does not change the state.</p>
<p>This method was introduced in  QtWebEngine 1.6.</p>
<p><b>See also </b><a href="qml-qtwebengine-webenginedownloaditem.html#pause-method">pause</a> and <a href="qml-qtwebengine-webenginedownloaditem.html#isPaused-prop">isPaused</a>.</p>
</div></div><!-- @@@resume -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    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. </p>
</div>
</body>
</html>