PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest

class QWebEngineRegisterProtocolHandlerRequest

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

Synopsis

Properties

  • originᅟ - URL template for the protocol handler

  • schemeᅟ - URL scheme for the protocol handler

Methods

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

Note

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

property originᅟ: QUrl

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

This is the second parameter from the registerProtocolHandler call.

Access functions:
property schemeᅟ: str

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

This is the first parameter from the registerProtocolHandler call.

Access functions:
__init__()
accept()

Accepts the request

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

__ne__(that)
Parameters:

thatQWebEngineRegisterProtocolHandlerRequest

Return type:

bool

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

__eq__(that)
Parameters:

thatQWebEngineRegisterProtocolHandlerRequest

Return type:

bool

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

origin()
Return type:

QUrl

Getter of property originᅟ .

reject()

Rejects the request.

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

scheme()
Return type:

str

Getter of property schemeᅟ .