Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
5.10.1
-
None
-
macOS 10.13
Description
Given the following code, where GLWindow directly inherits from QOpenGLWindow :
GLWindow::GLWindow() { QSurfaceFormat f; f.setProfile(QSurfaceFormat::CoreProfile); f.setVersion(4, 1); f.setSwapInterval(1); setFormat(f); connect(this, &GLWindow::frameSwapped, this, [=] { requestUpdate(); update(); std::cerr << "update called" << "\n"; }); } void GLWindow::paintGL() { std::cerr << "paint called" << "\n"; update(); }
I only have painting whenever I resize the GLWindow or put it in background then foreground.
By default nothing moves and update / paint is not called. This works fine on linux with the same Qt version.