2

I'm logging calls to update() and paintGL(), but somehow, only update happens. paintGL is called a couple of times and then never again! How is this possible? The window is visible and isVisible() returns True every time update() is called.

Specifically, I converted from QGLWidget to QOpenGLWidget. I replaced my calls to updateGL() with calls to update(), and I replaced passing the format to the constructor with calling setFormat(). I added various calls to makeCurrent() where appropriate. Is there anything I'm missing?

It appears that QOpenGLWidget might be broken when it is one of many widgets within a window.

4

1 回答 1

1

QOpenGLWidget在 a 中QScrollArea,它没有转发QPaint事件。

于 2016-05-08T00:18:37.110 回答