QOpenGLWidget problems
-
Dear All:
I am trying to update to version 5.4 and I have a couple of queston. I begin to use the "QOpenGLWidget" replacing the all QGLWidget and I got into some issues that I did not find before.
Before my application was running all fine but now I got the following error:
"program is not valid in the current context"
when I detach and attach a QDockingWidget that inside contain the "QOpenGLWidget". Moreover before I use to call the updateGL to force the update of the widget when I change a property for example when I update a texture and now this does not seem to be there anymore. I try to use the regular update but this really does not update all the time. As far as I know there is no possibility to call directly the paintGL functions is there any other solution?
Thanks a lot
-
Hi,
I have a similar problem. I use a tabbed widget with different opengl widgets in the tabs, which are closable. With QGLWidget all works fine. Now with QOpenGLWidget it often happens, that closing a tab and showing the next opengl context stops painting this opengl content. I found out that the paintGL() function is still called and the scene is rendered as well. Even interaction is possible, but the view seem to be frozen. Just a resize of the window starts painting the opengl content again.
Before I used updateGL() and this worked w/o problems. Now with update() this problem occurs.Perhaps a bug?
-
Hi,
If you can reproduce that with a minimal example then it's likely a bug. You should also take a look at the "bug report system":http://bugreports.qt.io to see if it's something known