Using OpenGL without Qt class
-
wrote on 17 Feb 2013, 16:35 last edited by
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 -
wrote on 18 Feb 2013, 08:54 last edited by
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?
-
wrote on 18 Feb 2013, 09:08 last edited by
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.
-
wrote on 30 Mar 2013, 20:31 last edited by
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).