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'