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

2022-11-16 Thread Nyall Dawson via QGIS-Developer
On Thu, 17 Nov 2022 at 02:22, Jean-Baptiste Peter via QGIS-Developer wrote: > > 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

Re: [QGIS-Developer] Project loader profiler Postgres Layers

2022-11-16 Thread Nyall Dawson via QGIS-Developer
On Thu, 17 Nov 2022 at 07:57, Rémi Desgrange via QGIS-Developer wrote: > > @Julien sorry for not being clear, I used the Debugging/Developement tool 😊 Just to clarify -- there's two useful tools in the Debugging/development tools here: 1. The "Project Load" profiler, which gives an atomic list o

Re: [QGIS-Developer] Project loader profiler Postgres Layers

2022-11-16 Thread Rémi Desgrange via QGIS-Developer
@Julien sorry for not being clear, I used the Debugging/Developement tool 😊 @René-Luc Thanks I’ll look into it. From: QGIS-Developer on behalf of René-Luc Dhont via QGIS-Developer Date: Wednesday, 16 November 2022 at 10:06 To: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] Proje

[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

[QGIS-Developer] QGIS Windows debug build

2022-11-16 Thread Clément Matysiak via QGIS-Developer
Hello, I'm trying to integrate QGIS C++ API into a Qt project (MSVC 2019 64bits and Qt 5.15.2 on Windows 11). I used qgis-ltr package successfully for release build, but is there a debug version available ? I've tried to compile QGIS from source and did generate lib files but I suspect so

Re: [QGIS-Developer] Project loader profiler Postgres Layers

2022-11-16 Thread René-Luc Dhont via QGIS-Developer
Hi Rémi, During the provider creation, a lot of SQL requests are made to check a lot of thing even if the use estimated metadata is checked : * Fields list * geometry type * primary key * extent * capabilities (read, insert, update, delete) You can take a look at these PRs to have an idea on a

Re: [QGIS-Developer] Project loader profiler Postgres Layers

2022-11-16 Thread Julien Cabieces via QGIS-Developer
Hi Remi, Which profiler are you talking about ? Did you try to use the the new Debugging/Developement tool ? It's new since QGIS 3.26 and will give you the list of requests and the time spent for each one when loading a project/layer or opening the attribute table. Regards, Julien > Hi, > >

[QGIS-Developer] Project loader profiler Postgres Layers

2022-11-16 Thread Rémi Desgrange via QGIS-Developer
Hi, I’m profiling large project loading, I think this mailing list doesn’t support images, so I won’t post any. I’m posting in the dev mailing list since I dived into the code and found nothing 😅. When you load a Postgres layer, the profiler list 3 steps: * Read layer metadata * Read l