From Ohm
As opposed to overriding the paintEvent method inherited from QWidget, an OpenGL window needs to inherit from QGLWidget and override its paintGL method, which contains the OpenGL rendering calls for a particular 3D scene.
By starting a timer in the widget’s constructor that triggers a repaint event we get a consistent animation frame rate.
Retrieved from http://schorsch.efi.fh-nuernberg.de/roettger/index.php/MedicalVisualization/QGLClassConcept
Page last modified on December 27, 2015, at 02:15 PM