QWebEngineRegisterProtocolHandlerRequest#

The QWebEngineRegisterProtocolHandlerRequest class enables accepting or rejecting requests from the registerProtocolHandler API. More

Inheritance diagram of PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest

Synopsis#

Properties#

  • origin - URL template for the protocol handler

  • scheme - URL scheme for the protocol handler

Functions#

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#

class PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest#

Note

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

property PᅟySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest.origin: PySide6.QtCore.QUrl#

This property holds The URL template for the protocol handler..

This is the second parameter from the registerProtocolHandler call.

Access functions:
property PᅟySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest.scheme: str#

This property holds The URL scheme for the protocol handler..

This is the first parameter from the registerProtocolHandler call.

Access functions:
PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest.accept()#

Accepts the request

Subsequent calls to accept() and reject() are ignored.

PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest.__ne__(that)#
Parameters:

thatPySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest

Return type:

bool

Returns true if that points to a different object than this request.

PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest.__eq__(that)#
Parameters:

thatPySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest

Return type:

bool

Returns true if that points to the same object as this request.

PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest.origin()#
Return type:

PySide6.QtCore.QUrl

Getter of property origin .

PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest.reject()#

Rejects the request.

Subsequent calls to accept() and reject() are ignored.

PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest.scheme()#
Return type:

str

Getter of property scheme .