OpenGL version with Qt 5.2.1
-
Hi everyone!
I'm currently working on a cross platform project but I encounter an issue related to the OpenGL version while trying to run it on Mac OSX Maveriks.
Indeed I created a QGLWidget which is integrated on my window through Qt designer but I can't manage to run OpenGL 3.3 functions on it. I tried to set the format of my widget using @setFormat@ method but it either segfault when I try to set it to 3.3, or does not change anything when trying to set to 3.0 since when I ask my widget for the current OpenGL version (using @glGetString(GL_VERSION)@) it returns "2.1" whether I've manually set the format or not.
Does this number actually refer to OpenGL or OpenGL ES version? How can I set Qt to use OpenGL 3.0+?I also would like to pass the QGLFormat to the constructor of my QGLWidget but I can't figure how since I created my window with the designer so the widget constructor is called when the UI is set...
I'm using Qt creator 3.0.1 with Qt 5.2.1 running on Mac OSX 10.9.2 with a GeForce 9400 GPU (officially supporting OGL 3.3)
Thanks a lot for your answers and don't hesitate to insult me if I'm not understandable or if the english mistakes I made hurt you!