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?
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:
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.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks