The following members of QML type WebEngineDownloadItem 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
|
path : string |
This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
使用 suggestedFileName , downloadDirectory ,和 downloadFileName 代替。
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.
另請參閱 WebEngineProfile::downloadRequested() and accept() .
|
[read-only] type : enumeration |
This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
描述請求下載的類型。
注意:
This property works unreliably, except for
SavePage
downloads. Use
isSavePageDownload
代替。
| 常量 | 描述 |
|---|---|
WebEngineDownloadItem.Attachment
|
Web 服務器的響應包括
Content-Disposition
頭具有
attachment
指令。若
Content-Disposition
存在於迴復中,Web 服務器指示客戶端應該提示用戶保存內容,不管內容類型。見
RFC 2616 第 19.5.1 節
瞭解細節。
|
WebEngineDownloadItem.DownloadAttribute
|
用戶點擊的鏈接具有
download
屬性。
|
WebEngineDownloadItem.UserRequested
|
用戶初啓下載,例如通過選擇 Web 操作。 |
WebEngineDownloadItem.SavePage
|
請求保存當前頁麵 (例如通過 WebEngineView.SavePage Web 動作)。 |
This property was introduced in QtWebEngine 1.4.