[Qt] QOpenGLWidget override initializeGL and paintGL
zeljko at holobit.net
Fri May 26 15:15:19 CEST 2017
On 05/26/2017 01:07 PM, MariuszB wrote:
>> It's not big problem to add QOpenGLxx to bindings but that's something
>> I don't like. Qt5Pas should contain only base gui and widgets, maybe
>> create separate Qt5PasOpenGL and qt5opengl.pas.
>> I've already added QSurface, QSurfaceType and QWindow classes which
>> can be used for openGl
> I think about my needs, and I see that I do not need all QOpenGLx.
> Can you tell me how to create OpenGL context for windows or panel in Qt5
> bindings ?
Really don't know :) Never played with OpenGL. Try to instantiate
QApplication, create QWindow and via it's QSurfaceType set to OpenGL ..
and see what happens :)
More information about the Qt