QCoreApplication.sendPostedEvents(None, QEvent.DeferredDelete) does the job.
Thanks Radim On Tue, Apr 18, 2023 at 10:38 AM Nyall Dawson <nyall.daw...@gmail.com> wrote: > You can safely execute the event loop with DeferredDelete to only cleanup of > this object without the danger of other event loop mess. _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer