Browser page class derived from QtWebEngineWidgets.QWebEnginePage
.
More...
|
def | __init__ (self, QtWebEngineWidgets.QWebEngineProfile profile, parent=None) |
|
def | certificateError (self, QtWebEngineWidgets.QWebEngineCertificateError error) |
| Override event to get user choice: ignore or reject certificate error. More...
|
|
def | on_authenticationRequired (self, requestUrl, authenticator) |
| Handler called when user authentication is required. More...
|
|
def | on_featurePermissionRequested (self, securityOrigin, feature) |
| Handler called when a feature permission like audio/video capture is requested. More...
|
|
def | on_proxyAuthenticationRequired (self, requestUrl, authenticator, proxyHost) |
| Handler called when the connection requires proxy authentication Shows a login/password dialog and collects the user data. More...
|
|
def | on_registerProtocolHandlerRequested (self, request) |
| Handler called when a website requests permission to handle links. More...
|
|
def | on_selectClientCertificate (self, selection) |
| Handler called when an HTTPS certificate is selected. More...
|
|
Browser page class derived from QtWebEngineWidgets.QWebEnginePage
.
Implements user authentication and customizable feature permissions.
◆ __init__()
def pycross.browser.WebPage.__init__ |
( |
|
self, |
|
|
QtWebEngineWidgets.QWebEngineProfile |
profile, |
|
|
|
parent = None |
|
) |
| |
- Parameters
-
profile | QtWebEngineWidgets.QWebEngineProfile web profile |
parent | QtWidget.QWidget parent widget (WebView ) |
◆ certificateError()
def pycross.browser.WebPage.certificateError |
( |
|
self, |
|
|
QtWebEngineWidgets.QWebEngineCertificateError |
error |
|
) |
| |
Override event to get user choice: ignore or reject certificate error.
◆ on_authenticationRequired()
def pycross.browser.WebPage.on_authenticationRequired |
( |
|
self, |
|
|
|
requestUrl, |
|
|
|
authenticator |
|
) |
| |
Handler called when user authentication is required.
Shows a password dialog and gets the entered login and password.
- Parameters
-
requestUrl | QtCore.QUrl URL of the page requiring authentication |
authenticator | QAuthenticator authenticator object |
◆ on_featurePermissionRequested()
def pycross.browser.WebPage.on_featurePermissionRequested |
( |
|
self, |
|
|
|
securityOrigin, |
|
|
|
feature |
|
) |
| |
Handler called when a feature permission like audio/video capture is requested.
Asks the user showing a simple Yes/No dialog and sets the corresponding permissions.
- Parameters
-
securityOrigin | QtCore.QUrl URL on the resource that requested feature permissions |
feature | QtWebEngineWidgets.QWebEnginePage.Feature requested feature, one of:
- Geolocation: collect geolocation info
- MediaAudioCapture: record audio (access to the mic)
- MediaVideoCapture: record video (access to the webcam)
- MouseLock: lock user's mouse
- DesktopVideoCapture: capture screen
- DesktopAudioVideoCapture: capture screen + sound card
- Notifications: pop up notifications
|
◆ on_proxyAuthenticationRequired()
def pycross.browser.WebPage.on_proxyAuthenticationRequired |
( |
|
self, |
|
|
|
requestUrl, |
|
|
|
authenticator, |
|
|
|
proxyHost |
|
) |
| |
Handler called when the connection requires proxy authentication Shows a login/password dialog and collects the user data.
- Parameters
-
requestUrl | QtCore.QUrl URL of the page requiring authentication |
authenticator | QAuthenticator authenticator object |
proxyHost | str current proxy host address |
◆ on_registerProtocolHandlerRequested()
def pycross.browser.WebPage.on_registerProtocolHandlerRequested |
( |
|
self, |
|
|
|
request |
|
) |
| |
Handler called when a website requests permission to handle links.
- Parameters
-
request | QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest request for permission |
◆ on_selectClientCertificate()
def pycross.browser.WebPage.on_selectClientCertificate |
( |
|
self, |
|
|
|
selection |
|
) |
| |
Handler called when an HTTPS certificate is selected.
- Parameters
-
selection | QWebEngineClientCertificateSelection certificate object |
The documentation for this class was generated from the following file: