class QWebEngineNavigationRequest

A utility type for the navigationRequested signal. More

Inheritance diagram of PySide6.QtWebEngineCore.QWebEngineNavigationRequest

Synopsis

Properties

Methods

Signals

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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.

class NavigationType
class NavigationRequestAction

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property actionᅟ: QWebEngineNavigationRequest.NavigationRequestAction
Access functions:
property isMainFrameᅟ: bool

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

Access functions:
property navigationTypeᅟ: QWebEngineNavigationRequest.NavigationType

This property holds The method used to navigate to a web page..

Access functions:
property urlᅟ: QUrl

This property holds The URL of the web page to go to..

Access functions:
accept()

Accepts a navigation request.

actionChanged()

Note

This function is deprecated.

Notification signal of property actionᅟ .

isMainFrame()
Return type:

bool

Getter of property isMainFrameᅟ .

navigationType()
Return type:

NavigationType

Getter of property navigationTypeᅟ .

reject()

Rejects a navigation request.

url()
Return type:

QUrl

Getter of property urlᅟ .