Force QT QOpenGLWidget to use a particular graphics card



  • I have an intergrated graphics card and an nVidia card. I want to force my QOpenGLWidget to use the integrated card only, as my application is going to use the nVidia card to run a lot of CUDA code.

    Is there a flag that you can set to ensure that the OpenGLWidget will only use the integrated card?