Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Only seeing black box in QGLWidget



  • I am trying to add an OpenGL widget to my existing application. The same exact GLWidget class works fine in other applications, but not the application I want it to work in. The only difference I am seeing, is that in other applications, OpenGL does not return any error codes. When it does not work, I receive a "1282" error.

    Totally stuck now. Any help would be appreciated!



  • Hi,

    The 1282 error code means GL_INVALID_OPERATION (see the following "link":https://www.opengl.org/wiki/OpenGL_Error) but it could be thrown by any one of your OpenGL calls. It would help to see some code.


Log in to reply