class_docstr: Extends QProgressDialog:
  
    * Adds context management so the dialog may be used in `with` statements
    * Allows nesting multiple progress dialogs
  
  Example::
  
      with ProgressDialog("Processing..", minVal, maxVal) as dlg:
          # do stuff
          dlg.setValue(i)   ## could also use dlg += 1
          if dlg.wasCanceled():
              raise Exception("Processing canceled by user")
code: def __exit__(self, exType, exValue, exTrace):
      if self.disabled:
          return
      if self.busyCursor:
          QtWidgets.QApplication.restoreOverrideCursor()
  
      if self._topDialog is not None:
          self._topDialog._removeSubDialog(self)
  
      ProgressDialog.allDialogs.pop(-1)
  
      self.setValue(self.maximum())
  
imports: from time import perf_counter
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 3 for calling the ProgressDialog obj's underlying member method code with example usage: obj.__exit__(exType, exValue, exTrace) without return types