Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to work with OpenGL and QT?

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?

like image 503
Amr Ramadan Avatar asked Apr 27 '11 17:04

Amr Ramadan


1 Answers

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:

  • Integrating custom OpenGL rendering with Qt Quick via QQuickFramebufferObject
  • Scene Graph - OpenGL Under QML

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.

like image 109
andref Avatar answered Sep 20 '22 01:09

andref