Does anyone here uses Qt in OpenGL programs? I’m trying to use it, but it looks like the lights don’t work! I use the same code I would use with GLUT (that worked perfectly) but lights don’t work. Anyone knows if I need to do something special to make it work?
The QGLWidget is a bit different compared to glut, so I guess you have missed something in your code, take a look at one of the OpenGL examples included with Qt and compare it with your code.
Check that you handle the resize signals and setup everything correct. The most possible cause of your problem is that you missed out something when you converted your code from glut to Qt.
Qr itself does nothing special. it’s just a widget on top of glx/OpenGL so everything at OpenGL level workls the same way as in all other OpenGL apps.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.