PDA

View Full Version : updateGL() in QOpenGLWidget



rgc183
18th December 2018, 23:21
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?

d_stranz
19th December 2018, 00:51
From the QOpenGLWidget docs:


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.