That's not quite what I'm looking for. I don't want to use QGraphicsViews, I want a widget to draw itself, on command, using the OpenGL calls. It'd be something like this....
void MyObj:aintGL() {
// setup gl matrices
// do other GL painting stuff
QPushButton button("foobar");
button.paint(within_this_established_openGL_enviro nment);
// Manipulate the modelview matricies.
// Draw that same button again transformed just to make a point.
button.paint(within_this_established_openGL_enviro nment);
}
I realize this isn't right, but this is the context in which I want to render widgets.
Bookmarks