[QGIS-Developer] Qt WebEngine in QGIS 3.36

Nyall Dawson nyall.dawson at gmail.com
Mon May 27 11:23:34 PDT 2024


On Mon, 27 May 2024, 11:02 pm Enrico Ferreguti, <enricofer at gmail.com> wrote:

> Hi Nyall
> the installed qt webengine is the following:
>
> $ apt list --installed | grep webengine
> libqt5webengine-data/jammy,jammy,now 5.15.9+dfsg-1 all [installato,
> automatico]
> libqt5webengine5/jammy,now 5.15.9+dfsg-1 amd64 [installato]
> libqt5webenginecore5/jammy,now 5.15.9+dfsg-1 amd64 [installato, automatico]
> libqt5webenginewidgets5/jammy,now 5.15.9+dfsg-1 amd64 [installato,
> automatico]
> python3-pyqt5.qtwebengine/jammy,now 5.15.5-1 amd64 [installato, automatico]
> qml-module-qtwebengine/jammy,now
>

You need python qt webengine 5.15.6 for use in qgis. See
https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/ChangeLog-5.15.7.dev2405031852

The required change is "Allow Qt.AA_ShareOpenGLContexts to be specified
before a
 QCoreApplication is created to allow PyQtWebEngineWidgets to be
 imported.".

I'd file a bug for your distro and request and update.

Nyall

5.15.9+dfsg-1 amd64 [installato]
> qtwebengine5-dev/jammy,now 5.15.9+dfsg-1 amd64 [installato]
> qtwebengine5-doc/jammy,jammy,now 5.15.9+dfsg-1 all [installato, automatico]
>
> Thanks for the support.
>
>
>
>
> Il giorno lun 27 mag 2024 alle ore 00:21 Nyall Dawson <
> nyall.dawson at gmail.com> ha scritto:
>
>> On Sun, 26 May 2024 at 18:42, Enrico Ferreguti via QGIS-Developer
>> <qgis-developer at lists.osgeo.org> wrote:
>> >
>> > Dear QGIS developers, I would need your support to update my plugins.
>> >
>> > I read that Qt WebEngine, from QGIS
>> >
>> > 3.36.3-Maidenhead, QT 5.15.3, is available for plugins:
>> https://changelog.qgis.org/en/entry/2607
>>
>> Which version of the python webengine library is installed? I suspect
>> this package is out of date and needs an update.
>>
>> Nyall
>>
>> >
>> >
>> > 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:
>> > from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage,
>> >
>> > I get an exception:
>> > ImportError: QtWebEngineWidgets must be imported before a
>> QCoreApplication instance is created
>> >
>> > and when I do the same from python3 in bash I get no exceptions
>> >
>> > Where Am I wrong? Is there something different to do for importing
>> QtWebEngineWidgets ?
>> > Can you point me to a running example?
>> >
>> > Thank you very much.
>> > Enrico Ferreguti
>> >
>> >
>> > _______________________________________________
>> > QGIS-Developer mailing list
>> > QGIS-Developer at lists.osgeo.org
>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240528/d1f2ec8d/attachment-0001.htm>


More information about the QGIS-Developer mailing list