This example demonstrates the use of QProgressBar when performing operations which may take a long time to complete. The progress dialog only appears if the estimated completion time is 3-4 seconds.