I want to use a GLWidget which is inside a simulator window, and would like to send the data using framebuffer object to the mainwindow’s glwidget.
I have used signal/slot to achieve that but I had many problems with multi-threading problem and exceptions.
What is the best way to achieve that scenario. ![attached a picture of the scenario I want to do][1]
If you want to share the framebuffer object, you should use GL context resource sharing and not Signal/Slot. The latter runs in main memory, while the context sharing happens on the GPU. So there is no copy of data (transfer over the bus and back!) involved.
In the QGLWidget documentation it is explained how two widgets can have sharing context:
http://doc.qt.nokia.com/4.7-snapshot/qglwidget.html#QGLWidget