0

I want to do a simple Qt window with some buttons for user interaction and have a 3D scene inside this window and through this buttons, the user will configure and run the OpenCV software to analyze the image and take some decisions.

I already have the Qt software part running and my doubts are now with respect to OpenGL.

As far as I had read, Qt own implementation of OpenGL (QGLWidget) is not a full implementation of OpenGL, but more like a OpenGL ES 2.0 for increased cross platform support. I don't want to lose any OpenGL functionality since this is an exercise for future projects so is it possible to use full OpenGL and still have it shown inside Qt? And will I be able to provide this 3D scene to OpenCV as a camera?

genpfault
  • 51,148
  • 11
  • 85
  • 139
Michel Feinstein
  • 13,416
  • 16
  • 91
  • 173
  • 1
    What gave you that idea? QGLWidget has a minimum implementation requirement of OpenGL 2.0 / ES 2.0 for certain functionality, but is not limited to either. Basically all QGLWidget does is abstract and hide OpenGL context management from you so you can embed an OpenGL context into your application portably. You can still use native OpenGL bindings once you have the QGLWidget's context active/current within a thread. – Andon M. Coleman Oct 22 '13 at 06:57
  • This topic gave me that idea: http://stackoverflow.com/questions/15671816/opengl-vs-qopengl-qtopengl-in-qt-5-differences-and-limitations – Michel Feinstein Oct 22 '13 at 07:06
  • 1
    That topic is discussing the API wrappers (things that try to make working with FBOs, VBOs, etc. "easier"). QGLWidget is lower-level than that, it merely manages an OpenGL context and lets you use it as a widget within a dialog; once active you can issue any GL command your driver supports. – Andon M. Coleman Oct 22 '13 at 07:24
  • Could you please elaborate more on all the questions I asked and post it as an answer? Many thanks. – Michel Feinstein Oct 22 '13 at 08:06
  • Unfortunately I have never used OpenCV, so all I can do is comment on OpenGL in Qt. It's not really an answer, so much as a clarification. – Andon M. Coleman Oct 22 '13 at 08:29

0 Answers0