BelgianBiodiversityPlatform / qgis-gbif-api

GBIF Occurrences is a QGIS plugin to directly import occurrences from the GBIF API
BSD 3-Clause "New" or "Revised" License
13 stars 5 forks source link

Make it threaded so loading doesn't freeze UI #7

Closed niconoe closed 9 years ago

niconoe commented 9 years ago

See http://gis.stackexchange.com/questions/45514/how-do-i-maintain-a-resposive-gui-using-qthread-with-pyqgis

niconoe commented 9 years ago

At the same time, make it cancellable in the middle of loading

niconoe commented 9 years ago

This was done, but the code went very complex for few, if any, real benefits.

In both (mono/multi-threaded) versions, we had to manually call Qt.QApplication.processEvents() to keep the UI responsive. It was therefore decided for now that it wasn't worth it, and we are back for now to a much simpler, mono-threaded version.