Use QtWebEngine with a OpenGL 3.3 core profile
-
wrote on 31 Aug 2021, 14:18 last edited by
Hi,
I am developing a Qt Quick application that does a lot of 3D through
QQuickFrameBufferObject
. For my retro-compatibility needs, I decided to use an OpenGL 3.3 core profile for my QApplication.The issue is that QtWebEngine seems to require a 2.0 profile (which would require me to drop to a 3.3 compat profile but this will break other things in my application).
Is there a way to get QtWebEngine to work with OpenGL 3.3 Core or to run it using another profile? My use case is to simply generate a
QWebEnginePage
to load local files and generate PDFs (everything headless, I do not need to display anything).Another solution would be to create another application called by my main app to handle PDF generation but this sounds too complicated for the simple problem I am trying to solve.
-
wrote on 1 Sept 2021, 11:28 last edited by
Try to search answer on your question here: https://code.woboq.org/qt5/qtdoc/doc/src/platforms/windows.qdoc.html (search key word OpenGL)
Hope it will help you
1/2