[QGIS-Developer] pdf production

2021-05-31 Thread Poltini Roberto
Hi all, I developed a QGIS (3.10.14-A Coruña) plugin to export hundreds pdfs from QgsReport. The pdf is composed by maps and the last page contains a table which can be expanded to the next pages. At the beginnig the pdfs are all right. The problem occurs after some hundreds pdf when the table

[QGIS-Developer] get postgres connection from layer

2020-04-29 Thread Poltini Roberto
Hi All, is it possible to have the postgres connection used by a vector layer using python with qgis 3 ? In qgis 2 I read the layer connection properties where I found login and password. A simple example to create a postgres connection used by a vector layer: import psycopg2 conn = psycopg2.

[QGIS-Developer] R: Toolbar customization

2018-03-07 Thread Poltini Roberto
x27;t save them at all ? Do you mean I have to create my own dialog to set the button visibility ? Regards Da: Tim Sutton [mailto:t...@kartoza.com] Inviato: mercoledì 7 marzo 2018 13.49 A: Poltini Roberto Oggetto: Re: [QGIS-Developer] Toolbar customization Hi Yes this is as I have explained - it is b

[QGIS-Developer] Toolbar customization

2018-03-07 Thread Poltini Roberto
Hi Devs, I noticed that QGIS customization (QGIS 2.18) doesn’t work as expected. My plugin has a big toolbar so I want to hide some buttons. Using the customization dialog I set some buttons of my toolbar as “hide” but when I restart qgis these settings are lost. It works with “core” plugins b

[QGIS-Developer] prevent deletion

2018-02-22 Thread Poltini Roberto
Hi Devs, if there are some selected objects and a user press del button the selected object wiil be deleted. Is it possible to prevent deletion using a python plugin ? When my maptool is active I don’t want this qgis function is active. Thanks Roberto Per essere

[QGIS-Developer] keyPressEvent on QgsMapTool

2018-02-21 Thread Poltini Roberto
Hi devs, I am using an object derived by QgsMapTool class (python, qgis 2.18 on window). I need to use the keyPressEvent function of QgsMapTool. I cannot receive any event if I press some keys for example “a”, “c”, “d”, “p”, “x”, “y” keys. The other keys works fine. Is there anybody who can he

[QGIS-Developer] get the db connection of a postgis vector layer

2017-10-04 Thread Poltini Roberto
Hi all, i have a qgis vector layer with postgis data. Qgis connects to the data via a complex view. The view contains a run-time parameter which must be set by the postgresql statement “SET parameter=value;” Postgres SET command only affects the value used by the current session so I have to

[QGIS-Developer] How to exit QGIS after running a python script ?

2017-06-29 Thread Poltini Roberto
Hi all, I would like to run a python script via qgis --code myscript.py and then immediately exit. I'm using iface.actionExit().trigger(), which kills QGIS when I run it from the python console, but not when put in the script that I pass to –code. What's the right way to immediately exit? I'm

[Qgis-developer] keyPressEvent event after contextual menu on canvas

2016-03-21 Thread Poltini Roberto
anvas()) popupMenu.addAction(QAction("test", popupMenu)) popupMenu.popup(self.canvas().mapToGlobal(event.pos())) return def keyPressEvent(self, event): pass ====== Poltini Roberto IREN S.p.A. Sistemi Informativi - Sistemi Informativi T

[Qgis-developer] maptool doesn't receive key pressed events after QMenu.popup() function

2014-07-02 Thread Poltini Roberto
that any workaround ? Thank you Roberto == Poltini Roberto IREN ACQUA GAS S.p.A. Servizi e Comunicazione - Sistemi Informativi Territoriali Via Piacenza 54 16138 Genova ITALY Tel 010.5586.791 Fax 010.5586.727 email: roberto.polt...@irenacquagas.it<mailto:robe

[Qgis-developer] bounding box of QgsLabel

2014-03-06 Thread Poltini Roberto
Hi all, how can i get the bounding box rectangle af a QgsLabel object ? Thanks Roberto Per essere informati sulle novità del Gruppo Iren, vi invitiamo a registrarvi alla nostra mailing list, all’indirizzo "http://www.gruppoiren.it/";