Using OpenGL without Qt class
-
I would like to use OpenGL in a Qt program without QGLWidget .I mean use Qt only for UI but for creat buffers ,context,use flags and etc use OpenGL functions .Something like what we define in Windows use window.h but using qt for other OS.
I do not know how I do it -
Hi,
Whatever you want to do with OpenGL, to display something there is a point you will have to open a window and to create an OpenGL context associated with it. According to your post, you want something multi OS, and your are planning to use Qt for UI: what's wrong with using QGLWidget?
-
This:
[quote author="ZapB" date="1361178528"]Why not just use QWindow and QOpenGLContext? That takes away the pain of context and window creation. Then you can do as you please for the rest of your GL work either use Qt's enabler classes or do it yourself. This is Qt5 though.[/quote]Use the ease of Qt for the window/ui, use GL for the rest(just like if you weren't using Qt).