Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2758

QQuickWebEngineProfile.setUrlRequestInterceptor() missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.7.2, 6.8.0
    • 6.6.3
    • PySide
    • None
    • Linux/Wayland
    • 5363aa094 (dev), 9f4c58707 (6.7)

    Description

      setUrlRequestInterceptor() via PySide6 is missing in QtWebEngineQuick.QQuickWebEngineProfile. Its available in QtWebEngineCore.QWebEnginePage though.

      According to documentation it should be available. See

      https://doc.qt.io/qtforpython-6/PySide6/QtWebEngineQuick/QQuickWebEngineProfile.html#PySide6.QtWebEngineQuick.QQuickWebEngineProfile.setUrlRequestInterceptor

      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

        Activity

          People

            kleint Friedemann Kleint
            qtackler John Devel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes