I\'m currently working with Qt and a graphics engine and during the init of the QGLWidget instance I need to pass a few function pointers to my engine.
The function look
See this question, I think it is pretty much what you want to do:
How do I implement a callback in C++?