WebEngineNavigationRequest QML Type | Qt WebEngine 6.8.3 (original) (raw)

Represents a request for navigating to a web page as part of WebEngineView::navigationRequested(). More...

Properties

Detailed Description

To accept or reject a request, call accept() or reject().

Property Documentation

Whether to accept or ignore the navigation request.

Constant Description
WebEngineNavigationRequest.AcceptRequest Accepts a navigation request.
WebEngineNavigationRequest.IgnoreRequest Ignores a navigation request.

hasFormData : bool [read-only, since 6.8]

Whether the navigation request contains form data

This property was introduced in Qt 6.8.

isMainFrame : bool [read-only]

Whether the navigation issue is requested for a top level page.

navigationType : enumeration [read-only]

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.

The URL of the web page to go to.

© 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.