Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
QOPenGLContext: how to create a context inside a QOpenGLWidget?
Lays147 last edited by Lays147
Can someone give me a example like: how to create a context inside a QOpenGLWidget?
Because i need to use the function QOpenGLContext::swapbuffers. And i have a function that needs to draw some stuff in the screen, and i realize that i need to use that function. I dont find another way to do it. I read some examples like http://doc.qt.io/qt-5/qtgui-openglwindow-example.html but appears different working when aplied a QWindow.
johngod last edited by
That example is using QWindow, should not be used with widgets, but as a standalone window.
Check this docs instead http://doc.qt.io/qt-5/qopenglwidget.html#details
Lays147 last edited by
@johngod I already read all the documentation of qopenglwidget. But i need draw some stuff without call paintGL. And i cant find a way to do it.
I'm lost. Any tips help me to find a way i will be graiteful.