QOpenGlWidget postredisplay
Unsolved
General and Desktop
-
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 ?
-
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.
-
-
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.