Hi,
I use Queued connections. I connect the signal of the Threads to the main Thread. When the main thread recives the signal it calls "showImage" from the QGLWidgets.
I think that I found the problem. Showing images is now working well(Thanks), but, the Thread also uses image algorithms to do some jobs. Here is the problem. The libraries could not be thread safe and so if I'm calling the same function on two different threads it could crash.
For the algorithm of showing images, thanks another time. I'm new to OpenGL and this is the only way that I found to show images. If there is a better way to do this, please tell me how to do this.
Thanks,
Bookmarks