[QGIS-Developer] Recommended method to display a webpage in a plugin

Nyall Dawson nyall.dawson at gmail.com
Tue Feb 15 16:56:50 PST 2022


On Wed, 16 Feb 2022 at 06:46, Jean-Baptiste Peter <jbpeter at outlook.com> wrote:
>
> Hello,
>
> I am trying to figure what is the right way to display a webpage within a QGIS plugin and I have a few questions :
>
> Is it currently possible to use QWebEngineView class with QGIS python console? When I try to import it in QGIS python console, I get the following error :
>
>
>
> ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'
>
>
>
>
>
> 2. If it is not currently possible to use QWebEngineView, does it involve major work or is there a chance it will be supported in the near future?

It's a very messy, horrible situation with no good ways forward. Right
now you'll need to use QtWebKit, and there's no plans on the horizon
to change this.

Nyall


More information about the QGIS-Developer mailing list