Details
Description
setUrlRequestInterceptor() via PySide6 is missing in QtWebEngineQuick.QQuickWebEngineProfile. Its available in QtWebEngineCore.QWebEnginePage though.
According to documentation it should be available. See
and
https://doc.qt.io/qt-6/qquickwebengineprofile.html#setUrlRequestInterceptor
from PySide6.QtGui import QGuiApplication from PySide6.QtWebEngineQuick import QQuickWebEngineProfile from PySide6.QtWebEngineCore import QWebEngineUrlRequestInterceptor class MyInterceptor(QWebEngineUrlRequestInterceptor): def __init__(self): super().__init__() QGuiApplication([]) QQuickWebEngineProfile().setUrlRequestInterceptor(MyInterceptor())
AttributeError: 'PySide6.QtWebEngineQuick.QQuickWebEngineProfile' object has no attribute 'setUrlRequestInterceptor'
Attachments
For Gerrit Dashboard: PYSIDE-2758 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
561486,2 | Add missing QQuickWebEngineProfile.setUrlRequestInterceptor() and others | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 |
561663,2 | Add missing QQuickWebEngineProfile.setUrlRequestInterceptor() and others | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |