PDA

View Full Version : QWidgets Rendered in an opengl graphics engine



hypnotic401
14th August 2012, 14:22
Hello,
Currently I have a predefined graphics engine that renders using OpenGL. I would like to render a Qwidget (or a set of QWidgets) directly in to the main window (which is a win32 api native window with an opel gl render surface attached to it). How can I make the QWidget draw directly in to the native api (without creating a new window handle as OpenGL only works well with one rendering context which has already been established.) I do not want to use a QGLWidget as the main window, I am making this code portable, so we create the main window using whatever native windowing system allows. Is this even possible? If so how would I go about accomplishing this?