pyqt5.6 interceptRequest doesn't work
问题 I want to interceptor a url request to another by subclass QWebEngineUrlRequestInterceptor: class RequestInterceptor(QWebEngineUrlRequestInterceptor): def interceptRequest(self,info): print('#################interceptRequest') print(info.requestUrl(),info.firstPartyUrl(),info.NavigationType,info.resourceType(),info.requestMethod()) if info.requestUrl().endswith("/jquery.js"): info.redirect('/jqueryTest.js') app = QApplication([]) p = QWebEnginePage() v = QWebEngineView() v.setPage(p) p