[Qt-interest] Segment fault when updating OpenGL QGLWidget from thread ?

Ed Sutton ESutton at fescorp.com
Wed Jul 1 15:34:20 CEST 2009


> You shouldn't necessarily have to use a QMutex, sending the image data 
> for the frame over as a QVector / QImage using signals and slots might 
> be sufficient.

I thought I should add that I cannot derive my render thread from QThread.  As a possible solution, will creating an intermediate QObject to connect the render thread to emit signals to the UI provide the needed synchronization?

1 - Derive an object from QObject
2 - Connect derived QObject signal to the GUI's updateImage slot.
3 - Make derived QObject receive the callback from my render thread and emit the signal and synchronization will be handled automatically?
 
Thanks again,

-Ed






More information about the Qt-interest-old mailing list