Re: [QGIS-Developer] Unexpected results from GPKG table query using executeSql()

2022-03-31 Thread Raymond Nijssen via QGIS-Developer
For a workaround I found that selecting this way: SELECT edit_id + 0 AS edit_id, timestamp, name FROM ... The +0 seem to makes QGIS (or GDAL?) unaware of edit_id being the PK field and it does return it. Works both in 3.10 and 3.25. Raymond On 31-03-2022 18:15, Alessandro Pasotti w

Re: [QGIS-Developer] How to access QgisApp::instance() from a core class

2022-03-31 Thread Schmetzer, Tobias via QGIS-Developer
> Offhand, there's a couple of ways to approach something like this: > 1. You add appropriate signals in the core classes which are emitted > at useful stages, e.g. "aboutToCalculateExtent", > "extentCalculationProgressChanged", "extentCalculationComplete". And > then the app/gui classes ca

Re: [QGIS-Developer] Unexpected results from GPKG table query using executeSql()

2022-03-31 Thread Raymond Nijssen via QGIS-Developer
Hi Alessandro, Thanks for your reply. Will share data and a test script with you privately. Raymond On 31-03-2022 18:15, Alessandro Pasotti wrote: Hi Raymond, your code looks good. Can you provide a test file? There are some test in core here: https://github.com/qgis/QGIS/blob/master/test

Re: [QGIS-Developer] Unexpected results from GPKG table query using executeSql()

2022-03-31 Thread Alessandro Pasotti via QGIS-Developer
Hi Raymond, your code looks good. Can you provide a test file? There are some test in core here: https://github.com/qgis/QGIS/blob/master/tests/src/python/test_qgsproviderconnection_ogr_gpkg.py On Thu, Mar 31, 2022 at 6:09 PM Raymond Nijssen via QGIS-Developer < qgis-developer@lists.osgeo.org>

[QGIS-Developer] Unexpected results from GPKG table query using executeSql()

2022-03-31 Thread Raymond Nijssen via QGIS-Developer
Hi devs, I'm working on a plugin that connects to a custom table (without geometry) in a GPKG. When I'm sending queries to it, I keep on getting unexpected results. Somehow the id field is missing, sometimes it appears twice (!). And this seems to be different between QGIS 3.10 and 3.25. (I t

[QGIS-Developer] Plugin dependency with binaries: 'best' way to guide user to install?

2022-03-31 Thread Aron Gergely via QGIS-Developer
Hi All, What would be a good practice to handle 3rd party libs which can't be shipped together with a plugin? I am looking for the most user-friendly way and have an idea. But thought I would bounce it off the collective wisdom here and see if there are other/better ways. If we find a 'best'

Re: [QGIS-Developer] Override System Locale user interface with American English by Default?

2022-03-31 Thread Alexandre Neto via QGIS-Developer
Great. Thanks Jürgen and Harrissou. Alexandre On Thu Mar 31, 2022, 10:19 AM GMT, DelazJ wrote: Hi, I've been chatting with Transifex guys for the docs and indeed, they made me confirm that we want to 3.16 and 3.20 desktop resources. And as they told you, Jürgen, they were supposed to do it and

Re: [QGIS-Developer] Override System Locale user interface with American English by Default?

2022-03-31 Thread DelazJ via QGIS-Developer
Hi, I've been chatting with Transifex guys for the docs and indeed, they made me confirm that we want to 3.16 and 3.20 desktop resources. And as they told you, Jürgen, they were supposed to do it and let us know. Anyway, I asked them again last night about this. So let's give them few days (again).

Re: [QGIS-Developer] Override System Locale user interface with American English by Default?

2022-03-31 Thread Jürgen E . Fischer via QGIS-Developer
Hi Alexandre, On Thu, 31. Mar 2022 at 02:58:45 -0700, Alexandre Neto wrote: > Can I delete the 3-16 and 3-20 translation resources from transifex? they > won't be used anymore and that way we avoid people translating it in vain. No, their webinterface will just ignore you if you try. It has been

Re: [QGIS-Developer] Override System Locale user interface with American English by Default?

2022-03-31 Thread Alexandre Neto via QGIS-Developer
Hi Jurgen, Can I delete the 3-16 and 3-20 translation resources from transifex? they won't be used anymore and that way we avoid people translating it in vain. Alexandre Neto On Thu Mar 24, 2022, 10:13 PM GMT, Jürgen E. Fischer wrote: Hi Alexandre, On Thu, 24. Mar 2022 at 18:43:24 +, Alex