Solved Using Qt with directly calls to OpenGL.
-
How I can use Qt to manage the OpenGL window, while using direct OpenGL commands to render?
-
Hi! See QOpenGLWindow and QOpenGLWidget. You might also be interested in QOpenGLFunctions.
-
There's a set of OpenGL examples that ship with Qt.
http://code.qt.io/cgit/qt/qtbase.git/tree/examples/opengl
http://doc.qt.io/qt-5/qtgui-index.html#opengl-and-opengl-es-integration -
@Wieland @jeremy_k
thanks but all these examples seems that don't use directly opengl, their using "qt opengl wrappers" so they make Qt calls that make OpenGL calls for them. And I need calls opengl directly. -
@feniks_fire said in Using Qt with directly calls to OpenGL.:
so they make Qt calls that make OpenGL calls for them
No. The OpenGL Window and Widget only provide you with a surface you can render to and integration points (at least initializeGL(), resizeGL(), and paintGL()) to coordinate your rendering with the rest of the GUI. There is a convenience wrapper, QOpenGLFunctions, but you don't have to use it at all.
-
@Wieland
Thanks! It's really work hhaha! 2,5 hours of searching and finally it's work. And yeah I apologize for my disbelief, you have right. Again, really big thanks :). -
Great to hear you got it to work now. :-)