I have a function in my application that calls various subfunctions depending on the configuration. Each sub function is computationally intensive so I added a callback to update the status of a modal QProgressDialog. Each subfunction shows 0-100% completion of itself rather than the parent function.
If the dialog closes between subfunctions and the window doesn’t have focus, the dock icon bounces. This can be seriously annoying if there are more subfunctions remaining as the user has switched focus away for a reason!
Is there a way to disable icon bouncing for when a QProgressDialog closes without focus ?
If you set
QProgressDialog::setAutoClose(false)the progress dialog will stay open between the subfunctions and stop the dock icon from bouncing.