How to work with OpenGL and QT?

Amr Ramadan picture Amr Ramadan · Apr 27, 2011 · Viewed 22.2k times · Source

I'm Working on a small project and i need to work with OpenGL + QT

I'm Newbie in both of them. So i need a good tutorial that illustrates how to work with them each other not individually

is it better to work OpenGL on QT Creator or use QT Visual Studio Plug-in?

Answer

andref picture andref · Apr 27, 2011

You'll be using QGLWidget a lot! Here you go:

http://doc.qt.io/qt-5/examples-widgets-opengl.html

Of all those, maybe this is the best one to start: Hello GL Example. If you prefer using Qt Quick instead of Qt Widgets, check these posts:

If you want a higher-level 3D API than OpenGL, as o Qt 5.7 Qt 3D became stable.

As for the IDE I suggest using Qt Creator. It works out of the box on Windows and the syntax highlighting and autocomplete are comparable to Visual Studio.