[QGIS-Developer] Add a layer using python console - let QGIS figure out which provider to use and what sublayers to load

2024-09-15 Thread Jean-Baptiste Peter via QGIS-Developer
Hello, I am trying to figure out if there is an easy way to add a layer using python API knowing only the file path of the source dataset. I would like to let QGIS figure out which provider to use and what sublayers to load if it is an archive. A bit like if I was drag dropping a file on the ma

Re: [QGIS-Developer] Request for Initial Feedback on Layer Atlas Plugin

2024-07-11 Thread Jean-Baptiste Peter via QGIS-Developer
Hi, Interesting, according to QT doc WebGLEnabled should be enabled by default if available but I will add it anyway as you suggested. Would you mind sharing the code to install missing dependencies once you are done with it? I have not looked into it yet and this would save me some time! Than

Re: [QGIS-Developer] Request for Initial Feedback on Layer Atlas Plugin

2024-07-09 Thread Jean-Baptiste Peter via QGIS-Developer
This is head spinning! For OSGeo4W install with "python3-pyqtwebengine" selected, are you testing this in a VM? I wonder if the crash at startup may be caused by the fact that qwebengineview is using opengl which is not working with emulated graphics. This works on my desktop. I am sure for the

Re: [QGIS-Developer] Request for Initial Feedback on Layer Atlas Plugin

2024-07-09 Thread Jean-Baptiste Peter via QGIS-Developer
Did you install PyQtWebEngine “manually” using pip install? If that is the case, it will not be bundled with qgis and needs to be imported from Pyqt directly: ‘from qgis.PyQt.QtWebEngineWidgets import QWebEngineView’ needs to be replaced by : ‘from PyQt5.QtWebEngineWidgets import QWebEngineVie

Re: [QGIS-Developer] Request for Initial Feedback on Layer Atlas Plugin

2024-07-09 Thread Jean-Baptiste Peter via QGIS-Developer
I don’t think this will work with qgis installed using .msi as the installer does not include PyQtWebEngine. It should work out of the box using qgis osgeo4W installer which includes the latest version of PyQtWebEngine (5.15.6) which is required for the plugin to work. There should not be any o

Re: [QGIS-Developer] QGIS-Developer Digest, Vol 225, Issue 6

2024-07-09 Thread Jean-Baptiste Peter via QGIS-Developer
Dear Andreas, I have been playing with QWebEngineView for a while and managed to get it to work using the recently updated default libs of Osgeo4W and the following code: https://github.com/jbp35/layer-atlas-plugin/blob/main/Layer_Atlas_dockwidget.py >From my understanding, two things still have

[QGIS-Developer] Request for Initial Feedback on Layer Atlas Plugin

2024-07-09 Thread Jean-Baptiste Peter via QGIS-Developer
Dear Developers, I have been experimenting for a while with QWebEngineView which opens a lot of possibilities for plugin development and started to implement a new plugin to explore and share layers directly from QGIS by simply dragging and dropping them from the layer panel. Here is a short s

Re: [QGIS-Developer] QGIS-Developer Digest, Vol 209, Issue 25

2023-03-20 Thread Jean-Baptiste Peter via QGIS-Developer
Hi Andrea, I faced the same issue recently and found these two tools to convert DEM into TIN: - dem2mesh: https://github.com/OpenDroneMap/dem2mesh - tin-terrain https://github.com/heremaps/tin-terrain dem2mesh worked in my use case to convert a large DEM for 3d visualization. It produces nice

Re: [QGIS-Developer] How to restore dock widget plugin size after relaunch of QGIS?

2022-11-17 Thread Jean-Baptiste Peter via QGIS-Developer
self.pluginIsActive = True self.dockwidget.show() Thank you! Best, -- Jean-Baptiste PETER -Original Message- From: Nyall Dawson Sent: Wednesday, November 16, 2022 11:31 PM To: Jean-Baptiste Peter Cc: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Devel

[QGIS-Developer] How to restore dock widget plugin size after relaunch of QGIS?

2022-11-16 Thread Jean-Baptiste Peter via QGIS-Developer
Hi, I am working on a QGIS plugin which is based on QGIS plugin Builder dock widget template. The default behavior of this template is that the dock widget is not restored after closing and reopening QGIS. Here is the repo of my plugin: https://github.com/jbp35/layout_panel I managed to reopen

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

2022-04-01 Thread Jean-Baptiste Peter via QGIS-Developer
Hi, Following up on my previous post, I managed to get qwebengine to work within a plugin on windows 10. I had to do the following changes : - On QGIS side, I had to change a line in the main.cpp from core to set "Qt::AA_ShareOpenGLContexts". I already posted a PR for this : https://github.com