Hi,
I have written a class MyGLWidget which is inherited from QGLWidget. It has all the mouse handling functions for rotating/zooming/panning.
I want to paint on this MyGLWidget from two different places in the program (by not using function pointers for paintGL function). I do not have idea that how can I use QGLContext and makeCurrent stuff?
Also, how can I create QGLContext with QThread if I want to use QThread for drawing from two different places? How can I share a QGLContext?
I studied the QThread and QGLWidget example on article http://doc.trolltech.com/qq/qq06-glimpsing.html and seems fine to me. But how can I share QGLContext from two different threads?
Can anybody please throw some light on this?
Thank you.
--
regards,
eye51
Bookmarks