'Stop the widget\'s progress (i.e hide the progress bar).
Parameters
value : float
Progress value increment.
processEvents : Optional[QEventLoop.ProcessEventsFlags]
If present then `QApplication.processEvents(processEvents)`
will be called. Passing any value here is highly discouraged.
It is up to the client to handle the consequences of such action.
.. versionchanged:: 3.4.2
Deprecated and changed default `processEvents` value.'

def progressBarFinished(self, processEvents=None):

    self.setWindowTitle(self.captionTitle)
    if (self.__progressState != 0):
        self.__progressState = 0
        self.processingStateChanged.emit(0)
    if ((processEvents is not None) and (processEvents is not False)):
        qApp.processEvents(processEvents)
