Re: [QGIS-Developer] How to get the name for a QgsLayoutDesignerInterface object?

2022-07-29 Thread Raymond Nijssen via QGIS-Developer
Wow, thank you so much, masterLayout() it is! Raymond On 29-07-2022 11:42, John Gitau wrote: Hi Raymond, For the window title, you can try designer.window().windowTitle(). To get the QgsPrintLayout object, you can try designer.masterLayout() which has the .name() method. Cheers, John On

Re: [QGIS-Developer] Is it possible to make QGIS show the fired queries to databases in Debugging Tools?

2022-07-29 Thread Alessandro Pasotti via QGIS-Developer
On Fri, Jul 29, 2022 at 12:30 PM Bo Victor Thomsen via QGIS-Developer wrote: > > Nice to know 😮 - > > What about GeoPackage ? Is it technically difficult or was is not The first: GPKG uses GDAL which internally calls SQLite C code, and there is no interface to retrieve the actual SQL. -- Alessa

Re: [QGIS-Developer] Is it possible to make QGIS show the fired queries to databases in Debugging Tools?

2022-07-29 Thread Bo Victor Thomsen via QGIS-Developer
Nice to know 😮 - What about GeoPackage ? Is it technically difficult or was is not requested ?? I'm just wondering. GeoPackage is - after all - a major data format for QGIS.. And both Spatialite and GeoPackage is based on the same db-technology: SQLite Med venlig hilsen / Kind regards B

Re: [QGIS-Developer] How to get the name for a QgsLayoutDesignerInterface object?

2022-07-29 Thread John Gitau via QGIS-Developer
Hi Raymond, For the window title, you can try designer.window().windowTitle(). To get the QgsPrintLayout object, you can try designer.masterLayout() which has the .name() method. Cheers, John On Fri, 29 Jul 2022 at 12:04, Raymond Nijssen via QGIS-Developer < qgis-developer@lists.osgeo.org> wro

Re: [QGIS-Developer] Is it possible to make QGIS show the fired queries to databases in Debugging Tools?

2022-07-29 Thread Andreas Neumann via QGIS-Developer
Hi Ale, Thanks for the clarification - good to know! Andreas On 2022-07-29 11:12, Alessandro Pasotti wrote: Hi, It is currently implemented for PG, Oracle, MSSQL and spatialite. On Fri, Jul 29, 2022 at 10:48 AM Andreas Neumann via QGIS-Developer wrote: Hi Richard, Yes, this happens from

Re: [QGIS-Developer] Is it possible to make QGIS show the fired queries to databases in Debugging Tools?

2022-07-29 Thread Alessandro Pasotti via QGIS-Developer
Hi, It is currently implemented for PG, Oracle, MSSQL and spatialite. On Fri, Jul 29, 2022 at 10:48 AM Andreas Neumann via QGIS-Developer wrote: > > Hi Richard, > > Yes, this happens from time to time to me as well, that I am looking for a > new feature and it turns out that it is already impl

[QGIS-Developer] How to get the name for a QgsLayoutDesignerInterface object?

2022-07-29 Thread Raymond Nijssen via QGIS-Developer
Hi developers, I'm trying to get the name for a layout designer window, which is in a python variable (designer) of type QgsLayoutDesignerInterface. designer.layout() returns a QgsLayout object but that class does not have a .name() function. The QgsPrintLayout class does have a .name() fun

Re: [QGIS-Developer] Is it possible to make QGIS show the fired queries to databases in Debugging Tools?

2022-07-29 Thread Andreas Neumann via QGIS-Developer
Hi Richard, Yes, this happens from time to time to me as well, that I am looking for a new feature and it turns out that it is already implemented ;-) As far as I know, it is only implemented for Postgis so far - other DB engines could be added, if someone cares about it. Greetings, Andrea

Re: [QGIS-Developer] Is it possible to make QGIS show the fired queries to databases in Debugging Tools?

2022-07-29 Thread Richard Duivenvoorde via QGIS-Developer
Duh... Thanks Andreas, how can I have missed this... Too many features syndrome I think :-) Thanks, working great (at least for Postgis, not other db around here...) Regards, Richard On 7/29/22 10:34, Andreas Neumann wrote: Hi Richard, This should already be available in the debugging tool

Re: [QGIS-Developer] Is it possible to make QGIS show the fired queries to databases in Debugging Tools?

2022-07-29 Thread Andreas Neumann via QGIS-Developer
Hi Richard, This should already be available in the debugging tools --> Query Logger It was a recent QGIS grant project and developed by elpaso. Greetings, Andreas On 2022-07-29 10:25, Richard Duivenvoorde via QGIS-Developer wrote: Doing some Postgis work with QGIS, I often asked myself what

[QGIS-Developer] Is it possible to make QGIS show the fired queries to databases in Debugging Tools?

2022-07-29 Thread Richard Duivenvoorde via QGIS-Developer
Doing some Postgis work with QGIS, I often asked myself what queries QGIS is firing to the database. I can off course log that in the database, but I was wondering if QGIS had some 'signal' which could be use to pass the queries used to the Debugging Tools? I skimmed QgsDataProvider, QgsVectorD