WebEngineLoadingInfo QML Type

A utility type for the WebEngineView::loadingChanged 信號。 更多...

import 語句: import QtWebEngine
Since: QtWebEngine 1.0
在 C++: QWebEngineLoadingInfo

特性

詳細描述

Contains information about a request for loading a web page, such as the URL and current loading status (started, succeeded, failed).

另請參閱 WebEngineView::loadingChanged .

特性文檔編製

errorCode : int [read-only]

Holds the error code.

errorDomain : enumeration [read-only]

This enumeration holds the type of a load request error:

常量 描述
WebEngineLoadingInfo.NoErrorDomain Error type is not known.
WebEngineLoadingInfo.InternalErrorDomain Content cannot be interpreted by Qt WebEngine.
WebEngineLoadingInfo.ConnectionErrorDomain Error results from a faulty network connection.
WebEngineLoadingInfo.CertificateErrorDomain Error is related to the SSL/TLS certificate.
WebEngineLoadingInfo.HttpErrorDomain Error is related to the HTTP connection.
WebEngineLoadingInfo.FtpErrorDomain Error is related to the FTP connection.
WebEngineLoadingInfo.DnsErrorDomain Error is related to the DNS connection.
WebEngineLoadingInfo.HttpStatusCodeDomain Error is the HTTP response status code, even in case of success e.g. the server replied with status 200.

errorString : string [read-only]

Holds the error message.

status : enumeration [read-only]

This enumeration represents the load status of a web page load request:

常量 描述
WebEngineView.LoadStartedStatus 目前正在加載頁麵。
WebEngineView.LoadStoppedStatus Loading the page was stopped by the stop() method or by the loader code or network stack in Chromium.
WebEngineView.LoadSucceededStatus Page has been loaded with success.
WebEngineView.LoadFailedStatus Page could not be loaded.

另請參閱 WebEngineView::loadingChanged .

url : url [read-only]

Holds the URL of the load request.