[QGIS-Developer] Catch qgis exit

Jan Růžička jan.ruzicka.vsb at gmail.com
Thu Oct 8 10:16:28 PDT 2020


Thank you very much. That is perfect. When we move to a new version I can
use it.
Now the Police of the Czech Republic is on 3.12 version.
I use the way that you have posted, so the QGIS can not be closed by the
cross button, but may be closed by Ctrl+Q.
We will migrate after the pilot phase  that should end in April 2021.

Jan Růžička, Ph.D.
freelancer, researcher and volontaire
Geoinformatics
tel: +420 775 032 091
e-mail: jan.ruzicka.vsb at gmail.com <http://jan.ruzicka.vsb.cz/>
http://github.com/ruz76/
http://gismentors.eu/
http://dolnilhota.info/


Le mar. 6 oct. 2020 à 03:44, Nyall Dawson <nyall.dawson at gmail.com> a écrit :

> On Thu, 25 Jun 2020 at 21:30, Jan Růžička <jan.ruzicka.vsb at gmail.com>
> wrote:
> >
> > Dear developers,
> >
> > I have developed a plugin for the Police of the Czech Republic for
> Search and Rescue operations. It works quite well, but one important
> feature is missing.
> >
> > After the search event is finished the user should enter the result of
> the search.
> >
> > I was not able to find a way to catch an event when the user closes the
> whole QGIS. I need similar functionality like when closing in the case of a
> dirty project (no all changes were saved).
> >
> > I have searched a lot and did not find any solution. I was able to catch
> the unload event of the plugin, but I did not find a way to keep QGIS
> opened.
>
> I know this is an old thread, but FYI QGIS 3.16 brings new API hooks
> to address this requirement.
>
> See https://github.com/qgis/QGIS/pull/39191
>
> Nyall
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20201008/1abf4cf1/attachment-0001.html>


More information about the QGIS-Developer mailing list