I'm going to guess: no. Since for QGraphicsScene for rendering via OpenGL you need to specify the object received in QGLWidget as the scene viewing area - you did not do this, so you almost certainly use a raster engine. Secondly, QPainter uses any paint device that you create it, as a backend, you specified a direct QImage that does not use OpenGL.
If you cannot / will not use QGLWidget through QGraphicsView , then you can display on QGLFramebufferObject . But this brings its complications, namely, you will have to create a hidden context in advance.
source share