No reason to have it on the heap. This also lets us skip calling reset, since the dialog closes when the QProgressDialog object goes out of scope.
No reason to have it on the heap. This also lets us skip calling reset, since the dialog closes when the QProgressDialog object goes out of scope.