QGraphicsScene stops updating when application is minimized
I've got an issue in an application that I'm working on where when I minimize my app, the QGraphicsScene stops responding to calls to update - drawBackground never gets called. Even though the app is not being displayed, I do various OpenGL drawings to off screen buffers from drawBackground that need to happen 50 times a second to generate a constant video output. This wasn't an issue in 5.7.0, it's only happening now that I've updated to 5.9.1.
Is there any way I can force drawBackground to still happen?
did you try to call
Yeah, I called repaint on the view, and on view->viewport(), but it didn't have any effect. Is there an equivalent to repaint for QGraphicsScene?
then you will have to decouple your custom painting from Qt's painting events, to keep the background painting running.