Hi all, we want to load a qlr-file (QgsLayerDefinition.loadLayerDefinition)in the background using the QgsTask Class.
The loading time of the qlr-file is about 50 seconds due to the high number of layers. During the loading time a dialog box with user feedback should appear. The goal is to ensure that QGIS does not freeze, but simply does not respond to user clicks. Now we have noticed that many (about 80) database connections are opened. These are only closed when you exit QGIS even though the QgsTask is already finished. Does anyone have any idea why there are so many database connections opened? Is there a way to reduce the number of Database connections? Is there a completely different approach to avoid freezing the UI? Thanks for your help! Kind regards. Anja Rademacher
_______________________________________________ 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