updateGL() is present in QGLWidget class which in turn calls glDraw and paintGL by making current context. What is the equivalent call in QOpenGLWidget to achieve same?
Printable View
updateGL() is present in QGLWidget class which in turn calls glDraw and paintGL by making current context. What is the equivalent call in QOpenGLWidget to achieve same?
From the QOpenGLWidget docs:
Quote:
If you need to trigger a repaint from places other than paintGL() (a typical example is when using timers to animate scenes), you should call the widget's update() function to schedule an update.