<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I'm trying to tweak spyderlib code so ot works with PyQt5.6.0 on windows.<br>
<br>
I'm stuck at this problem of change of webengine:<br>
<br>
    self._webview.linkClicked.connect(self.linkClicked)<br>
AttributeError: 'WebView' object has no attribute 'linkClicked'<br>
<br>
Can anyone point me to an example code or documentation that tells me<br>
how to transform the code ?<br>
<br>
(I don't do Qt development, so my question may be super easy or super<br>
complex, I have no idea)<br></blockquote><div><br></div><div>Very complex, probably. As you know(?), the Webkit support including QWebView has been removed and replaced with QWebEngine. So the direct replacement for QWebView would be QWebEngineView [0], however it does not offer all the features of the old support.<br><br></div><div>Owing to the nature of the Chromium browser there probably is no equivalent of the linkClicked signal. See this old forum post [1] and other posts in the webengine forum [2]<br><br>You need to analyze what the old code wants to accomplish by looking at every click-of-a-link and see if it can be done some other way.<br><br>[0] <a href="http://doc.qt.io/qt-5/qwebengineview.html">http://doc.qt.io/qt-5/qwebengineview.html</a><br>[1] <a href="https://forum.qt.io/topic/49692/two-more-things-i-can-t-find-in-qwebengine-that-are-in-qwebkit">https://forum.qt.io/topic/49692/two-more-things-i-can-t-find-in-qwebengine-that-are-in-qwebkit</a><br>[2] <a href="https://forum.qt.io/category/54/qtwebengine">https://forum.qt.io/category/54/qtwebengine</a><br></div><div><br> <br></div></div></div></div>