WebEngineLoadingInfo QML Type
WebEngineView::loadingChanged 信号的实用程序类型。更多
Import Statement: | import QtWebEngine |
Since: | QtWebEngine 1.0 |
In C++: | QWebEngineLoadingInfo |
属性
- errorCode : int
- errorDomain : enumeration
- errorString : string
- status : enumeration
- url : url
详细描述
包含有关加载网页请求的信息,如 URL 和当前加载状态(开始、成功、失败)。
另请参阅 WebEngineView::loadingChanged 。
属性文档
errorCode : int |
错误代码。
errorDomain : enumeration |
该枚举表示加载请求错误的类型:
常量 | 说明 |
---|---|
WebEngineLoadingInfo.NoErrorDomain | 错误类型未知。 |
WebEngineLoadingInfo.InternalErrorDomain | Qt WebEngine 无法解释内容。 |
WebEngineLoadingInfo.ConnectionErrorDomain | 网络连接故障导致的错误。 |
WebEngineLoadingInfo.CertificateErrorDomain | 错误与 SSL/TLS 证书有关。 |
WebEngineLoadingInfo.HttpErrorDomain | 错误与 HTTP 连接有关。 |
WebEngineLoadingInfo.FtpErrorDomain | 错误与 FTP 连接有关。 |
WebEngineLoadingInfo.DnsErrorDomain | 错误与 DNS 连接有关。 |
WebEngineLoadingInfo.HttpStatusCodeDomain | 错误是 HTTP 响应状态代码,即使是在成功的情况下,例如服务器回复状态为 200。 |
errorString : string |
错误消息。
status : enumeration |
该枚举表示网页加载请求的加载状态:
常量 | 说明 |
---|---|
WebEngineView.LoadStartedStatus | 页面正在加载。 |
WebEngineView.LoadStoppedStatus | 页面加载被 stop() 方法或 Chromium 中的加载器代码或网络协议栈停止。 |
WebEngineView.LoadSucceededStatus | 页面已成功加载。 |
WebEngineView.LoadFailedStatus | 页面无法加载。 |
url : url |
保存加载请求的 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.