Timeline for Displaying an alert before closing QGIS
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 21, 2021 at 21:00 | history | tweeted | twitter.com/StackGIS/status/1352360355788423170 | ||
Jan 21, 2021 at 7:24 | comment | added | Kadir Şahbaz | I needed something like that before, but I couldn't find any solution. gis.stackexchange.com/questions/162443/… | |
Jan 20, 2021 at 13:39 | comment | added | TrsBar | Thanks for your responses. It doesn't work, i can't cancel the event or display a message. The documentation says " Note that no user interaction is possible in this state." | |
Jan 20, 2021 at 13:04 | comment | added | Dror Bogin |
As @BenW suggested, using aboutToQuit might do the trick, maybe with something like: QgsApplication.instance().aboutToQuit.connect(mainWindowCloseEvent) , similar to how you connect qt signals to function in the plugin.
|
|
Jan 20, 2021 at 12:59 | comment | added | Ben W |
The QgsApplication class inherits from QApplication which has the signal aboutToQuit() . Perhaps you can make that work for you?
|
|
Jan 20, 2021 at 12:43 | history | edited | Vince | CC BY-SA 4.0 |
naming
|
Jan 20, 2021 at 12:33 | history | asked | TrsBar | CC BY-SA 4.0 |