Hi,

I have an ANGLE-based OpenGL renderer that is used for various target 
platforms. Now we need to use this in a Qt application and we can't rewrite all 
the OpenGL code to use the QOpenGLFunctions API.

Instead I've made a custom QWidget with Qt::WA_PaintOnScreen and 
WA_NativeWindow which sets up the ANGLE GL Context and renders through the 
paintEvent().

This works nicely enough, but now we need to add some Qt Buttons on top and 
then we get trouble with compositing and blending.

Is there another way of doing this, i.e doing custom rendering into a QWidget 
that can still be used along with other Qt Widgets? Any other way to use a 
QOpenGLWidget with an external OpenGL renderer?
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to