Hi,

I mean post the actual compiler output.
Qt Code:
  1. Error 1 error C2065: 'GL_BGR' : identificador no declarado c:\QOpenCVCamera\QOpenCVCamera\QOpenGLWidget.cpp 56
To copy to clipboard, switch view to plain text mode 

And the GL includes you have in your code.
Qt Code:
  1. #include <QtOpenGL>
To copy to clipboard, switch view to plain text mode 
I only included the QtOpenGL header that I think that is the header used by Qt.

Thanks,