I have a long script in PyQGIS that contains three processing tasks after another. I want to display a pop up box (like "QProgressDialog"-Box) for each task when it is finished.
Example: When Task 1 (Merge) has finished, I want a box to pop up ("Task 1 (Merge) is finished). Then the Task 2 is executing and when it is finished i want another box to pop up...
Unfortunately only the first "QProgressDialog"-Box is shown and QGIS freezes as it is processing.
How can I achieve to display a pop up box (or even better a progress bar) when QGIS is freezing?
My code is:
bar = QProgressDialog("Operation in progress", "Cancel",0,100)
bar.show()
bar.setRange(0,0)
#the processing tasks are following below
...