I am trying to use GLEW with the new QOpenGLWidget (that appeared in Qt 5.4). While I could do that quite easily with the older QGLWidget, it seems that the new QOpenGLWidget / QOpenGLContext classes do not collaborate well with GLEW (and I have no choice, I am using an external library that uses GLEW). I have the following problems:
I would like to get rid of the warnings to determine whether 2. and 3. are related with GLEW/QOpenGLWidget incompatibility.
Note: There are already several questions about Qt5/GLEW on Stackoverflow, but they all relate with the (older) QGLWidget, that behaves quite differently (no problem with this one with the same code/application).
The codebase is located here: https://gforge.inria.fr/frs/?group_id=1465 (too large to be included here, and because of the length, I cannot ask you to take a look at it, just in case you want to know)
I was able to fix all the problems as follows (yes !):
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.