QWebViewLoadingInfo Class
Cette classe fournit des informations sur l'état de charge du signal QWebView::loadingChanged(). Plus d'informations...
| En-tête : | #include <QWebViewLoadingInfo> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS WebView)target_link_libraries(mytarget PRIVATE Qt6::WebView) |
| qmake : | QT += webview |
| Depuis : | Qt 6.11 |
Types publics
| enum class | LoadStatus { Started, Succeeded, Failed, Stopped } |
Propriétés
- errorString : const QString
- status : const LoadStatus
- url : const QUrl
Fonctions publiques
| QString | errorString() const |
| QWebViewLoadingInfo::LoadStatus | status() const |
| void | swap(QWebViewLoadingInfo &other) |
| QUrl | url() const |
Description détaillée
Le type QWebViewLoadingInfo contient des informations sur l'état de chargement de l'URL demandée.
Documentation du type de membre
enum class QWebViewLoadingInfo::LoadStatus
Cette énumération représente l'état de chargement d'une page web.
| Constante | Valeur | Description |
|---|---|---|
QWebViewLoadingInfo::LoadStatus::Started | 0 | La page est en cours de chargement. |
QWebViewLoadingInfo::LoadStatus::Succeeded | 2 | La page a été chargée avec succès. |
QWebViewLoadingInfo::LoadStatus::Failed | 3 | La page n'a pas pu être chargée. |
QWebViewLoadingInfo::LoadStatus::Stopped | 1 | Le chargement de la page a été interrompu. |
Voir également QWebView::loadingChanged().
Documentation sur les propriétés
[read-only] errorString : const QString
Contient le message d'erreur.
Contient le message d'erreur si la demande de chargement a échoué.
Fonctions d'accès :
| QString | errorString() const |
Voir aussi QWebView::loadingChanged().
[read-only] status : const LoadStatus
Cette propriété indique l'état d'une demande de chargement de page web.
Cette énumération représente l'état de chargement d'une demande de chargement de page web.
Fonctions d'accès :
| QWebViewLoadingInfo::LoadStatus | status() const |
Voir aussi QWebView::loadingChanged().
[read-only] url : const QUrl
Cette propriété contient l'URL de la demande de chargement. L'URL de la demande de chargement.
Fonctions d'accès :
| QUrl | url() const |
Voir aussi QWebView::url.
Documentation des fonctions membres
[noexcept] void QWebViewLoadingInfo::swap(QWebViewLoadingInfo &other)
Remplace ces informations de chargement par other. Cette opération est très rapide et n'échoue jamais.
© 2026 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.