QWebViewLoadingInfo Class
Cette classe fournit des informations sur l'état de la charge pour le signal ` QWebView::loadingChanged()`. En savoir plus...
| 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
| QWebViewLoadingInfo(QWebViewLoadingInfo &&other) | |
| 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 sur les types de membres
enum class QWebViewLoadingInfo::LoadStatus
Cette énumération représente l'état d'exécution d'une requête 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 aussi 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 également QWebView::loadingChanged().
[read-only] status : const LoadStatus
Cette propriété indique l'état d'une requête de chargement de page Web.
Cette énumération représente l'état de chargement d'une requête de chargement de page Web.
Fonctions d'accès :
| QWebViewLoadingInfo::LoadStatus | status() const |
Voir également QWebView::loadingChanged().
[read-only] url : const QUrl
Cette propriété contient l'URL de la requête de chargement. L'URL de la requête de chargement.
Fonctions d'accès :
| QUrl | url() const |
Voir aussi QWebView::url.
Documentation sur les fonctions membres
[constexpr noexcept default] QWebViewLoadingInfo::QWebViewLoadingInfo(QWebViewLoadingInfo &&other)
Crée une instance de ` QWebViewLoadingInfo` à l'aide de la construction « move ».
[noexcept] void QWebViewLoadingInfo::swap(QWebViewLoadingInfo &other)
Remplace ces informations de chargement par celles de other. Cette opération est très rapide et ne pose jamais de problème.
© 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.