Extends QProgressDialog for use in ‘with’ statements. Arguments:
labelText (required) cancelText Text to display on cancel button, or None to disable it. minimum maximum parent wait Length of time (im ms) to wait before displaying dialog busyCursor If True, show busy cursor until dialog finishes
# do stuff dlg.setValue(i) ## could also use dlg += 1 if dlg.wasCanceled():
raise Exception(“Processing canceled by user”)