QWebEngineNavigationRequest Class▲
-
Header: QWebEngineNavigationRequest
-
Since: Qt 6.2
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
-
qmake: QT += webenginecore
-
Inherited By:
-
Instantiated By: qml-qtwebengine-webenginenavigationrequest.xml
-
Inherits: QObject
Detailed Description▲
Contains information about a navigation request.
To accept or reject a request, call accept() or reject().
The default if not handled is to accept the navigation.
See Also▲
See also QWebEnginePage::navigationRequested
Property Documentation▲
[read-only] isMainFrame : const bool▲
This property holds whether the navigation issue is requested for a top level page.
Access functions:
-
bool isMainFrame() const
[read-only] navigationType : const NavigationType▲
Access functions:
-
QWebEngineNavigationRequest::NavigationType navigationType() const
[read-only] url : const QUrl▲
This property holds the URL of the web page to go to.
Access functions:
-
url() const