title: how to implement QProgressBar for heavy computation?
body: <p>I am developing a GUI in QT which performs some heavy computation based on user input . I doing all the computation in a function say <b>start_computation()</b> , as start_computation() function is called my GUI hangs since it is busy in executing start_computation() function . So, I want to use QProgressBar to let the user know that the GUI is performing some task in the background .<br><br> what will be the best way to implement QProgressBar in such case ?</p>