1、支持老老顯卡的設置屬性
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
//QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
QGuiApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
2、加載錯誤的解決方法
拷貝opengl32sw.dll文件,改名爲opengl32.dll就可以。