[Qt-interest] QGraphicsScene - OpenGL glBegin/glEnd

fungos fungos at gmail.com
Sat Apr 11 23:14:46 CEST 2009


Hi, anybody can explain me how OpenGL QGraphicsScene works with
glBegin/glEnd (when they happen)?

My problem is: QMainWindow has a QWidget that is QGraphicsScene, but
then at initialization after all Qt code initialization, I have
another class that is a Renderer and its initialization calls
glGetString that returns an error: GL_INVALID_OPERATION is generated
if glGetString is executed between the execution of glBegin and the
corresponding execution of glEnd.

As I'm integrating a graphics engine inside a Qt window, how can I
handle these kind of issues without messing too much with the graphics
engine?

-- 
Animal Frontline Liberation



More information about the Qt-interest-old mailing list