Feature request #6736
Add a writtenProject signal at the end of the project file writing
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||15900|
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?
#2 Updated by Giovanni Allegri almost 6 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?