PDA

View Full Version : Avoid frezes while running functions



ruben.rodrigues
2nd March 2011, 15:15
Hi all!

I have google this already but haven't found anything that works with my case.

So, I have 2 widgets that use the same QThread. What the thread does is gets images from an ethernet camera and in one widget it shows the live picture and the other on works like a tool box and uses the same thread to get images and compare then to models with a 3rd party software called halcon.

My problem is that while I am comparing images, which can take more than 1 min, I don't get anymore livepictures because the Gui is frozen. As soon as the function ends I get live pictures again and therefor there is no problem with the thread.

I can't run the live picture widget in a thread because as far as I know I can't mix threads with gui classes. How can I avoid that from freezing?

Thanks!

wysota
2nd March 2011, 19:11
Keeping the GUI Responsive