Yep the dosomething in a new thread with signals to update the
progressbar. You can do it without a thread but the gui won't update
while the work is being done. You should play with it using sleep for
the dosomething part.
AON LAZIO wrote:
Hi,
How u guys use QProgressBar to properly display a running process?
For example , if I has this line
outinput = dosomething(input)
And it take > 10 mins to complete but I do not know the exact time it
takes .
I mean do I have to embed QProgressBar in the dosometing() function? Or
should I use QThread.
What are your experienced solutions?
Thanks
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt