Hi,
I access to the buffer of images to process it, then every tool (image processing tool) process the corresponding image and finally it paints to a Widget. The Widget is contains a Window (mmm... the processing library has a window object that I used to create a Widget) creating the library window into the widget and telling it that the Widget is its father.Do you access any shared data or GUI there?
If I process the image but don't display it, I'm able to stop and start the program as I want to, but if I display the images into the Widget and try to stop the program it hangs.
The code of the Widget is executed by the Consumer Thread. It Process the image, take the result image and display it.
The Widget is in the Main Window.
I will investigate more, and thanks for thinking on it
Òscar Llarch i Galán
And that's the problem. Only the main thread (a.k.a. the GUI thread) can touch the GUI. Better send those QImages through a queued connection to the GUI thread and let it handle them.
Also read this carefully: http://doc.trolltech.com/4.2/threads.html
Last edited by jacek; 17th November 2006 at 20:04. Reason: spelling error
Hey,
I will take a look at it.
Thank you very much,![]()
Òscar Llarch i Galán
Bookmarks