C++ (Qt)UpdateProgress progress("My Dialog Title", DELAY_BEFORE_SHOW);UpdateIndicator indicator("Process Name", "Units name", 0, MAX_ITERATION, UPDATE_STEP); for (int i = 0; i < MAX_ITERATION; ++i) { DoCalc(i): progress.Update(1); if (progress.cancelled()) break;}