avis_phoenix
14th August 2008, 22:46
Hi everybody :)
Well, I need some help to decide,if to use or not, threads.
I am using QGraphicsView to draw figures, and I have a function that changes the figure, but this function is very slow. I need to be able to pause it,stop it,and restart it at any time. This function is part to the gui with information of the process and buttons to pause,stop and restart.
As code is now; The information window is drawn until the process finishes, while the main window and the information window frezze. Maybe what is needed is a thread.
Please somebody help me
Thanks
Well, I need some help to decide,if to use or not, threads.
I am using QGraphicsView to draw figures, and I have a function that changes the figure, but this function is very slow. I need to be able to pause it,stop it,and restart it at any time. This function is part to the gui with information of the process and buttons to pause,stop and restart.
As code is now; The information window is drawn until the process finishes, while the main window and the information window frezze. Maybe what is needed is a thread.
Please somebody help me
Thanks