I run the qt official example "2dpainting" in "C:\Qt\Examples\Qt-5.12.2\opengl\2dpainting". When I set the graphics card (Intel(R) UHD Graphics, it is the graphics card that example is using) is disabled, the example crashed. BUT, at the same time, the Chrome which is playing a youtube's video has not crashed. Then, I found the CPU usage of Chrome has increased a lot. So, I think this is a bug of Qt which can't handle the switching between graphics card and cpu well.
My computer:
Computer: Lenove laptop, CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz 2.59 GHz, RAM: 16.0 GB, GRAPHICS CARD: NVIDIA Quadro P620 + Intel(R) UHD Graphics, System: Windows 10, Compiler: msvc2017, Qtcreator: 9.0.1(community),
This is a reproducible bug on my environment. I have reported to QTBUG[https://bugreports.qt.io/browse/QTBUG-111810], however, no reply.
How to avoid this crash?
When I run the example "qopenglwidget" in "C:\Qt\Examples\Qt-5.12.2\opengl\qopenglwidget", there was also a crash.
When I implemented QGLWidget by GLWidget, the "2dpainting" example did not crash. Does anyone know why?