<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 27 May 2024, 11:02 pm Enrico Ferreguti, <<a href="mailto:enricofer@gmail.com">enricofer@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Nyall</div><div>the installed qt webengine is the following:</div><div><br></div><div>$ apt list --installed | grep webengine</div><div>libqt5webengine-data/jammy,jammy,now 5.15.9+dfsg-1 all [installato, automatico]<br>libqt5webengine5/jammy,now 5.15.9+dfsg-1 amd64 [installato]<br>libqt5webenginecore5/jammy,now 5.15.9+dfsg-1 amd64 [installato, automatico]<br>libqt5webenginewidgets5/jammy,now 5.15.9+dfsg-1 amd64 [installato, automatico]<br>python3-pyqt5.qtwebengine/jammy,now 5.15.5-1 amd64 [installato, automatico]<br>qml-module-qtwebengine/jammy,now</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You need python qt webengine 5.15.6 for use in qgis. See <a href="https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/ChangeLog-5.15.7.dev2405031852">https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/ChangeLog-5.15.7.dev2405031852</a></div><div dir="auto"><br></div><div dir="auto">The required change is "Allow Qt.AA_ShareOpenGLContexts to be specified before a</div><div dir="auto"> QCoreApplication is created to allow PyQtWebEngineWidgets to be</div><div dir="auto"> imported.".</div><div dir="auto"><br></div><div dir="auto">I'd file a bug for your distro and request and update. </div><div dir="auto"><br></div><div dir="auto">Nyall</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> 5.15.9+dfsg-1 amd64 [installato]<br>qtwebengine5-dev/jammy,now 5.15.9+dfsg-1 amd64 [installato]<br>qtwebengine5-doc/jammy,jammy,now 5.15.9+dfsg-1 all [installato, automatico]</div><div><br></div><div>Thanks for the support.<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 27 mag 2024 alle ore 00:21 Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com" target="_blank" rel="noreferrer">nyall.dawson@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 26 May 2024 at 18:42, Enrico Ferreguti via QGIS-Developer<br>
<<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank" rel="noreferrer">qgis-developer@lists.osgeo.org</a>> wrote:<br>
><br>
> Dear QGIS developers, I would need your support to update my plugins.<br>
><br>
> I read that Qt WebEngine, from QGIS<br>
><br>
> 3.36.3-Maidenhead, QT 5.15.3, is available for plugins: <a href="https://changelog.qgis.org/en/entry/2607" rel="noreferrer noreferrer" target="_blank">https://changelog.qgis.org/en/entry/2607</a><br>
<br>
Which version of the python webengine library is installed? I suspect<br>
this package is out of date and needs an update.<br>
<br>
Nyall<br>
<br>
><br>
><br>
> But on Ubuntu Jammy LTS 22.04 and a fresh QGIS 3.36.3-Maidenhead with QT 5.15.3, when I try to import from QT5:<br>
> from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage,<br>
><br>
> I get an exception:<br>
> ImportError: QtWebEngineWidgets must be imported before a QCoreApplication instance is created<br>
><br>
> and when I do the same from python3 in bash I get no exceptions<br>
><br>
> Where Am I wrong? Is there something different to do for importing QtWebEngineWidgets ?<br>
> Can you point me to a running example?<br>
><br>
> Thank you very much.<br>
> Enrico Ferreguti<br>
><br>
><br>
> _______________________________________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>
</blockquote></div></div></div>