Represents a request for navigating to a web page as part of WebEngineView::navigationRequested(). More...
| Import Statement: | import QtWebEngine |
| Since: | QtWebEngine 1.0 |
| In C++: | QWebEngineNavigationRequest |
(since 6.8)To accept or reject a request, call accept() or reject().
|
action : enumeration |
Whether to accept or ignore the navigation request.
| Constant | Description |
|---|---|
WebEngineNavigationRequest.AcceptRequest |
Accepts a navigation request. |
WebEngineNavigationRequest.IgnoreRequest |
Ignores a navigation request. |
|
hasFormData : bool |
Whether the navigation request contains form data
This property was introduced in Qt 6.8.
|
isMainFrame : bool |
Whether the navigation issue is requested for a top level page.
|
navigationType : enumeration |
The method used to navigate to a web page.
| Constant | Description |
|---|---|
WebEngineNavigationRequest.LinkClickedNavigation |
Clicking a link. |
WebEngineNavigationRequest.TypedNavigation |
Entering an URL on the address bar. |
WebEngineNavigationRequest.FormSubmittedNavigation |
Submitting a form. |
WebEngineNavigationRequest.BackForwardNavigation |
Using navigation history to go to the previous or next page. |
WebEngineNavigationRequest.ReloadNavigation |
Reloading the page. |
WebEngineNavigationRequest.RedirectNavigation |
Page content or server triggered a redirection or page refresh. |
WebEngineNavigationRequest.OtherNavigation |
Using some other method to go to a page. |
|
url : url |
The URL of the web page to go to.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: