Feature request #6736
Add a writtenProject signal at the end of the project file writing
|Assigned to:||-||% Done:||
|Target version:||Future Release - Lower Priority|
|Platform version:||Pull Request or Patch supplied:||No|
I've had multiple times the need to post-process a project file, after it has been saved.
In this moment we can only intercept when the writing begins, but not when it finishes.
Could we emit a new signal at the end of the write() method of QgsProject?
Updated by Jürgen Fischer over 2 years ago
- Target version changed from Version 2.0.0 to Future Release - Lower Priority
Updated by Giovanni Allegri over 2 years ago
The aim of this would be giving other parts of code the opportunity to alter the xml content before being saved to file (e. g. a plugin).
My doubt is on the connection type. If not set, AutoConnection is used, but it won't guarantee to execute the slot code before saving the file. It depends if the signal and the slot run on the same thread or not.
In case of a single threaded python plugin code do the QgsProject::write will execute on the same thread of a python slot? I.e., will the slot be executed synchronously?
Also available in: Atom