WebEngineLoadingInfo QML Type

WebEngineView::loadingChanged 信号的实用程序类型。更多

Import Statement: import QtWebEngine
Since: QtWebEngine 1.0
In C++: QWebEngineLoadingInfo

属性

详细描述

包含有关加载网页请求的信息,如 URL 和当前加载状态(开始、成功、失败)。

另请参阅 WebEngineView::loadingChanged

属性文档

errorCode : int [read-only]

错误代码。


errorDomain : enumeration [read-only]

该枚举表示加载请求错误的类型:

常量说明
WebEngineLoadingInfo.NoErrorDomain错误类型未知。
WebEngineLoadingInfo.InternalErrorDomainQt WebEngine 无法解释内容。
WebEngineLoadingInfo.ConnectionErrorDomain网络连接故障导致的错误。
WebEngineLoadingInfo.CertificateErrorDomain错误与 SSL/TLS 证书有关。
WebEngineLoadingInfo.HttpErrorDomain错误与 HTTP 连接有关。
WebEngineLoadingInfo.FtpErrorDomain错误与 FTP 连接有关。
WebEngineLoadingInfo.DnsErrorDomain错误与 DNS 连接有关。
WebEngineLoadingInfo.HttpStatusCodeDomain错误是 HTTP 响应状态代码,即使是在成功的情况下,例如服务器回复状态为 200。

errorString : string [read-only]

错误消息。


status : enumeration [read-only]

该枚举表示网页加载请求的加载状态:

常量说明
WebEngineView.LoadStartedStatus页面正在加载。
WebEngineView.LoadStoppedStatus页面加载被 stop() 方法或 Chromium 中的加载器代码或网络协议栈停止。
WebEngineView.LoadSucceededStatus页面已成功加载。
WebEngineView.LoadFailedStatus页面无法加载。

另请参阅 WebEngineView::loadingChanged


url : url [read-only]

保存加载请求的 URL。


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