PDA

View Full Version : qtquick 2 and modern opengl



sajis997
17th December 2014, 03:57
Hello forum,

I came to know that qt quick uses opengl 2 for its rendering. What if i want to use modern opengl (4.x) as underlay with qt quick2 on top.

Where do i set the compatibility profile if i follow the procidure as mentioned in the following link :

https://qt-project.org/doc/qt-5-snapshot/qtquick-scenegraph-openglunderqml-example.html


Thanks

anda_skoa
17th December 2014, 09:26
You might have to use a different integration approach, e.g. rendering the QtQuick scene into a frame bufffer object (see QQuickWindow::setRenderTarget) or rendering the custom OpenGL into a QQuickFramebufferObject item.

Cheers,
_

wysota
17th December 2014, 10:52
Hello forum,

I came to know that qt quick uses opengl 2 for its rendering. What if i want to use modern opengl (4.x) as underlay with qt quick2 on top.

Where do i set the compatibility profile if i follow the procidure as mentioned in the following link :

https://qt-project.org/doc/qt-5-snapshot/qtquick-scenegraph-openglunderqml-example.html



Did you try using QWindow::setFormat() ? QQuickWindow inherits QWindow so you should be able to set the required profile in QSurfaceFormat.