QWebEngineNavigationRequest Class
Ein Hilfstyp für das Signal QWebEnginePage::navigationRequested. Mehr...
Kopfzeile: | #include <QWebEngineNavigationRequest> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
Seit: | Qt 6.2 |
In QML: | WebEngineNavigationRequest |
Vererbt: | QObject |
Eigenschaften
(since 6.8)
hasFormData : const bool- isMainFrame : const bool
- navigationType : const NavigationType
- url : const QUrl
Öffentliche Funktionen
void | accept() |
bool | hasFormData() const |
bool | isMainFrame() const |
QWebEngineNavigationRequest::NavigationType | navigationType() const |
void | reject() |
QUrl | url() const |
Signale
void | actionChanged() |
Detaillierte Beschreibung
Enthält Informationen über eine Navigationsanfrage.
Um eine Anfrage anzunehmen oder abzulehnen, rufen Sie accept() oder reject() auf.
Die Vorgabe ist, die Navigation zu akzeptieren, wenn sie nicht behandelt wird.
Siehe auch QWebEnginePage::navigationRequested.
Eigenschaft Dokumentation
[read-only, since 6.8]
hasFormData : const bool
Diese Eigenschaft gibt an, ob die Navigationsanfrage Formulardaten enthält
Diese Eigenschaft wurde in Qt 6.8 eingeführt.
Zugriffsfunktionen:
bool | hasFormData() const |
[read-only]
isMainFrame : const bool
Diese Eigenschaft gibt an, ob die Navigationsausgabe für eine Seite der obersten Ebene angefordert wird.
Zugriffsfunktionen:
bool | isMainFrame() const |
[read-only]
navigationType : const NavigationType
Diese Eigenschaft enthält die Methode, mit der zu einer Webseite navigiert wird.
Zugriffsfunktionen:
QWebEngineNavigationRequest::NavigationType | navigationType() const |
[read-only]
url : const QUrl
Diese Eigenschaft enthält die URL der zu besuchenden Webseite.
Zugriffsfunktionen:
QUrl | url() const |
Dokumentation der Mitgliedsfunktionen
[invokable]
void QWebEngineNavigationRequest::accept()
Nimmt eine Navigationsanfrage an.
Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe Q_INVOKABLE.
[invokable]
void QWebEngineNavigationRequest::reject()
Lehnt eine Navigationsanfrage ab.
Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe Q_INVOKABLE.
© 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.