OpenGL/ES on Qt5 QWidget
i really want to use opengl on qwidget. qt5 makes it rather difficult. it is a daunting task for me to custom compile qt5 with -opengl desktop. error messages keep coming up.
are there plans to release pre-built qt5 with -opengl desktop? or is there any learning material on using opengl es on qglwidget? i only see tutorial on opengl es with qwindow.
I can't speak to the future plans of Qt because I'm not involved with the development. However, I can say that I went down the same path you did and your only option is to rebuild with opengl desktop. It's a major pain in the butt to do, so allocate yourself at least a full day, maybe two, just to get it building.
It'd be nice if they'd get their builds working a little more trouble free, but you get what you pay for. I've responded to a couple of posts on these boards about getting OpenGL building and running. There's also some good blog articles around the net about doing it with MSVC.
I recommend first installing the Qt5 via the installer, then compiling from source, and then pointing your Qt paths to the newly compile binaries.
After you're all up and running, you still have to do some strange stuff to use any legacy OpenGL calls, even something as simple as drawing a line.
Okay, I will give it another go on building Qt5.
My other question is, how do I use OpenGL ES in QGLWidget?