Qt opengl render video when disable graphics driver.
Unsolved
General and Desktop
-
wrote on 28 Apr 2020, 12:44 last edited by
Now I develop a app, use qt opengl to render video, buth now I met a problem, a computer graphics driver not install, so when only can see a black screen.
I can use setAttribute(Qt::AA_UseSoftwareOpenGL) to slove this prolem, but it cost 50% cpu.
I want to use gpu to render when computer is good, and use softwareopengl when computer graphics has a problem.
What should i do. -
Hi
On the system with "issues" try calling
https://doc.qt.io/qt-5/qopenglcontext.html#openGLModuleType
or
https://doc.qt.io/qt-5/qsurfaceformat.html#renderableType
or try to create a context and see if its valid.
1/2