HI al,

I want to draw with openGL inside QMainWindow. I have looked all examples and QWindow was used there.
The problem is that i don't know how to get QSurface from the QMainWindow.
I need it to call swapbuffers makecurrent functions of the context.
It is easy done in QWindow but not it QMainWindow.
I don't want to use QGLWidget.
Do i need to create additiona QWindow upon the QMainWindow?
Thanks,