WebEngineNavigationRequest QML Type

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

import 语句: import QtWebEngine
Since: QtWebEngine 1.0
实例化: QWebEngineNavigationRequest

特性

详细描述

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

特性文档编制

action : enumeration

Whether to accept or ignore the navigation request.

常量 描述
WebEngineNavigationRequest.AcceptRequest Accepts a navigation request.
WebEngineNavigationRequest.IgnoreRequest Ignores a navigation request.

[read-only] isMainFrame : bool

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


The method used to navigate to a web page.

常量 描述
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.

[read-only] url : url

The URL of the web page to go to.