QOpenGLWidget show black screen

前端 未结 3 1869
北荒
北荒 2021-01-28 20:38

I tried the QOpenGLWidget example described here: https://stackoverflow.com/a/31524956/4564882

but I get only a black widget. The code is exactly the same. this the code

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-28 21:10

    In my case, my laptop uses NVIDIA external graphics card. So I went to NVIDIA Control Panel -> Manage 3D Settings -> Program Settings, and then selected "high-performance" for the .EXE file. This worked.

提交回复
热议问题