QOpenGlWidget postredisplay
-
wrote on 18 Jan 2017, 14:51 last edited by
Hi,
i want to change my QOpenGl background Color after init.
All solutions with a similar problem pointed to this: https://www.opengl.org/resources/libraries/glut/spec3/node20.html
So i wonder if there is something Qt that does the same. update() does not work -
Hi,
Can you show how you are using QOpenGLWidget ?
-
wrote on 19 Jan 2017, 09:30 last edited by
-
I'd move the call to glClearColor just before calling glClear.
If you don't want to recalculate it each turn, add a dirty check.
-
wrote on 20 Jan 2017, 15:41 last edited by
-
Maybe the frameSwapped signal is what you are looking for.
On a side note, your usage of parentWidget is a bad idea. You are creating a tight coupling and preparing for a nightmare maintenance of your application.
1/6