I\'m trying to execute some long-running function and then display progress using a QProgressBar. But every example I\'ve found uses a for-loop to emit an int counter signal