PDA

View Full Version : Embedding OGRE in QGLWidget as viewport for QGraphicsView for Mac and X11



pmax
17th August 2008, 18:31
For my PhD, I am trying to built a visualization of a team of remote controlled robots in some environment with proper GUI elements on top. For the 3D visualization, I'd like to use OGRE because I have already invested quite some time into learning my way around. I'm already quite experienced with Qt4, and since the TT guys showed how to do it with general OpenGL commands (http://labs.trolltech.com/blogs/2008/06/27/accelerate-your-widgets-with-opengl/), I'd like to do the same with OGRE in the back.

I've seen that some people use OGRE here, does anyone have a hint how to do this? There is a thread (http://www.qtcentre.org/forum/p-drawing-standard-widgets-using-a-custom-paint-engine-post40679/postcount26.html), in which a guy wanted to do the same and even produced some code. Unfortunately, I can't make it work with Mac. I tried integrating this code (http://www.ogre3d.org/phpBB2/viewtopic.php?p=258064). The contexts don't switch properly, or something. Even if I run the widget without the QGraphicsView, it doesn't work.

Any ideas?

Thanks in advance!