[QGIS-Developer] [EXTERNAL] Re: Outdated WebKit engine version in QGIS
Nguyen, Huy Minh
huyminh.nguyen at here.com
Thu May 4 13:38:48 PDT 2023
Thanks for the infos.
After some trial and error, I am able to use QtWebEngine as Qt QML component in python in QGIS 3.26.3 and QGIS 3.30.1 out-of-the-box. Example from Qt docs works as expected https://doc.qt.io/qt-5/qml-qtwebengine-webengineview.html
This approach doesn't work on macOS however. It shows QML errors module "QtWebEngine" is not installed, module "QtQuick.Window" is not installed . I think that this is due to lack of certain library in the QGIS bundle in macOS, similar to https://github.com/qgis/QGIS-Mac-Packager/issues/122. If this could be addressed for macOS, I think that using QtWebEngine as QML component in QGIS could be a notable alternative.
Regards,
Minh
From: Yoann Quenach de Quivillic <yoann.quenach at gmail.com>
Sent: Thursday, April 20, 2023 9:17 AM
To: Nyall Dawson <nyall.dawson at gmail.com>
Cc: Nguyen, Huy Minh <huyminh.nguyen at here.com>; qgis-developer at lists.osgeo.org
Subject: Re: [QGIS-Developer] [EXTERNAL] Re: Outdated WebKit engine version in QGIS
Sie erhalten nicht oft eine E-Mail von yoann.quenach at gmail.com<mailto:yoann.quenach at gmail.com>. Erfahren Sie, warum dies wichtig ist<https://aka.ms/LearnAboutSenderIdentification>
FYI, here's a (probably) related Qt bug report, but unfortunately it has not seen much activity lately: https://bugreports.qt.io/plugins/servlet/mobile#issue/QTBUG-85492.
Le jeu. 20 avr. 2023 à 00:31, Nyall Dawson via QGIS-Developer <qgis-developer at lists.osgeo.org<mailto:qgis-developer at lists.osgeo.org>> a écrit :
On Wed, 19 Apr 2023 at 16:55, Nguyen, Huy Minh <huyminh.nguyen at here.com<mailto:huyminh.nguyen at here.com>> wrote:
>
> Hi,
>
> If Qt Webengine is in QGIS why it cannot be used ? Is there maybe any Qgs class that uses Qt Webengine internally and can be reused ?
It's not in QGIS. It's in Qt, but can't be used from QGIS. QtWebengine
requires some initialization steps before construction of the
QApplication used by QGIS, and unfortunately these steps introduce an
incompatibility in OpenGL handling which breaks the QGIS 3D
functionality.
Pending an upstream Qt / Webengine fix we can't resolve this
situation, and Qt Webengine is not a possibility for use in QGIS.
Nyall
>
> Minh
>
>
> -----Original Message-----
> From: Nyall Dawson <nyall.dawson at gmail.com<mailto:nyall.dawson at gmail.com>>
> Sent: Wednesday, April 19, 2023 7:28 AM
> To: Nguyen, Huy Minh <huyminh.nguyen at here.com<mailto:huyminh.nguyen at here.com>>
> Cc: qgis-developer at lists.osgeo.org<mailto:qgis-developer at lists.osgeo.org>
> Subject: [EXTERNAL] Re: [QGIS-Developer] Outdated WebKit engine version in QGIS
>
>
> On Wed, 19 Apr 2023 at 15:24, Nguyen, Huy Minh via QGIS-Developer <qgis-developer at lists.osgeo.org<mailto:qgis-developer at lists.osgeo.org>> wrote:
> >
> > Hi,
> >
> >
> >
> > I have been using WebKit engine from the PyQt library built in QGIS 3.30 when developing QGIS plugin in Python to load web pages directly in QGIS. The Webkit engine used seems to be very outdated and not possible to render modern web pages. For example, the engine used in QGIS 3.30 dated back to 2016: AppleWebKit/602.1 (KHTML, like Gecko) QGIS3 Version/10.0 Safari/602.1.
> >
> >
> >
> > Is there any chance to update the built-in Webkit engine version in next release of QGIS ?
> >
> > Otherwise, can the WebKit engine be updated locally and provided to the application ?
> >
> > Does QGIS offer any other built-in alternatives, like the Qt WebEngine or other web engine with python bindings ?
>
> It's an extremely messy and painful situation, but ultimately the answer is NO. There's no alternative, no way of updating the webkit version used by QtWebkit, and Qt Webengine CANNOT be used as it stands in QGIS.
>
> Nyall
>
> >
> >
> >
> > Thank you,
> >
> > Minh
> >
> >
> >
> >
> >
> > _______________________________________________
> > QGIS-Developer mailing list
> > QGIS-Developer at lists.osgeo.org<mailto:QGIS-Developer at lists.osgeo.org>
> > List info:
> > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist<https://list/>
> > s.osgeo.org<http://s.osgeo.org/>%2Fmailman%2Flistinfo%2Fqgis-developer&data=05%7C01%7Chuymi
> > nh.nguyen%40here.com<http://40here.com/>%7C83865261759a4e94b02808db4096e273%7C6d4034cd7225
> > 4f72b85391feaea64919%7C0%7C0%7C638174789008955324%7CUnknown%7CTWFpbGZs
> > b3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D
> > %7C3000%7C%7C%7C&sdata=zsajlNbGjcZdZMAp%2BnBCgSAP1Tap5O6Ni8WbFSvKsuE%3
> > D&reserved=0
> > Unsubscribe:
> > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist<https://list/>
> > s.osgeo.org<http://s.osgeo.org/>%2Fmailman%2Flistinfo%2Fqgis-developer&data=05%7C01%7Chuymi
> > nh.nguyen%40here.com<http://40here.com/>%7C83865261759a4e94b02808db4096e273%7C6d4034cd7225
> > 4f72b85391feaea64919%7C0%7C0%7C638174789008955324%7CUnknown%7CTWFpbGZs
> > b3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D
> > %7C3000%7C%7C%7C&sdata=zsajlNbGjcZdZMAp%2BnBCgSAP1Tap5O6Ni8WbFSvKsuE%3
> > D&reserved=0
> LEARN FAST: This email originated outside of HERE.
> Please do not click on links or open attachments unless you recognize the sender and know the content is safe. Thank you.
>
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer at lists.osgeo.org<mailto: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/20230504/d52f7198/attachment-0001.htm>
More information about the QGIS-Developer
mailing list