[QGIS-Developer] pdf production

2021-06-01 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

[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 =

[QGIS-Developer] R: Toolbar customization

2018-03-07 Thread Poltini Roberto
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 better

[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

[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

[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

[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

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

2016-03-21 Thread Poltini Roberto
()) 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 Territ

[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/;http://www.gruppoiren.it/ .